LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Difference betwwen : Locked User Account & Disabled User Accounts in Linux ? (https://www.linuxquestions.org/questions/linux-security-4/difference-betwwen-locked-user-account-and-disabled-user-accounts-in-linux-702308/)

avklinux 02-04-2009 01:51 PM

Difference betwwen : Locked User Account & Disabled User Accounts in Linux ?
 
Thanks
AVK linux

JimLebeau 02-04-2009 02:30 PM

What does it mean to lock and to disable an account.
 
From the man page for passwd

-l, --lock
Lock the password of the named account. This option disables a password by changing it to a value which matches no possible encrypted value (it adds a '!' at the beginning of the password).

Note that this does not disable the account. The user may still be able to login using another authentication token (e.g. an SSH key). To disable the account, administrators should use usermod --expiredate 1
(this set the account's expire date to Jan 2, 1970).

Users with a locked password are not allowed to change their password.


All times are GMT -5. The time now is 05:48 AM.