[Samba] changing account flags to W

Francesc Guasch frankie at telecos.upc.edu
Mon May 16 03:55:57 MDT 2011


Hi. I have some machines that I can't log in anymore.

I think I changed their accounts to User accounts by mistake. Now
pdebedit show the U flag instead W.

I tried to change it like this:

# pdbedit -c='[W]' machine-211$
Can only set [NDHLX] flags

I tried also to recreate one machine account.
I removed the account with smbpasswd -x , and added it again,
but it won't login. I guess it is because the SID changed. I tried
setting the SID again:

# pdbedit -U S-1-5-21-64316383-546362030-1349479702-81176 -u machine-214$
Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
Unable to modify entry!

- Is there a way to turn those users to machines ?
- Can I change that SID somehow ?

This is Samba 3.2.5 on Debian Lenny.

Thank you very much.


More information about the samba mailing list