View Single Post
  #7 (permalink)  
Old 04-09-2004, 07:32 AM
dgbaker's Avatar
dgbaker dgbaker is offline
Moderator
cPanel Partner NOC Badge
 
Join Date: Sep 2002
Location: Toronto, Ontario Canada
Posts: 2,772
dgbaker is on a distinguished road
Just so everyone understands that command...

-l This option is used to lock the specified account and it is available to root only. The locking is performed by rendering the encrypted password into an invalid string (by prefixing the encrypted string with an !).


If you need to reverse it......


-u This is the reverse of the -l option - it will unlock the account password by removing the ! prefix. This option is available to root only. By default passwd will refuse to create a passwordless account (it will not unlock an account that has only "!" as a password). The force option -f will override this protection.

This is from the manpages of passwd.


Or doing a normal passwd reset re-enables the account as well. I have not tested but cpanel reset password via lost passwd would probably re-enable the account.
__________________
Regards,
David
Forum Moderator

Last edited by dgbaker; 04-09-2004 at 07:35 AM.
Reply With Quote