[Samba] Unlocking Accounts

Andrew Bartlett abartlet at samba.org
Thu Apr 22 08:40:46 GMT 2004

On Tue, 2004-04-20 at 03:35, Gerald (Jerry) Carter wrote:
> Adam Tauno Williams wrote:
> > Once an account gets the "L" flag set in 
>  > sambaAcctFlags is there a utility way to clear the lock on
>  > the account?  I can clear the sambaBadPasswordCount with
>  > pdbedit -z, but that leaves the account in a
> > locked state.  I don't see any way to use pdbedit or 
>  > smbpassword to unlock an account (although I can
>  > enable/disable an account).
> pdbedit -c='[]' <user> will clear all flags

Removing the 'U' flag is probably a bad idea (breaks some user manager
function at least), so I would suggest 

pdbedit -c='[U]'


pdbedit -c='[UX]'

for the no-expiry flag.

Andrew Bartlett

Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20040422/a6e314ab/attachment.bin

More information about the samba mailing list