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]'

or 

pdbedit -c='[UX]'

for the no-expiry flag.

Andrew Bartlett

-- 
Andrew Bartlett                                 [EMAIL PROTECTED]
Manager, Authentication Subsystems, Samba Team  [EMAIL PROTECTED]
Student Network Administrator, Hawker College   [EMAIL PROTECTED]
http://samba.org     http://build.samba.org     http://hawkerc.net

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to