LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 02-04-2009, 02:51 PM   #1
avklinux
Member
 
Registered: Nov 2008
Posts: 32

Rep: Reputation: 15
Difference betwwen : Locked User Account & Disabled User Accounts in Linux ?


Thanks
AVK linux
 
Old 02-04-2009, 03:30 PM   #2
JimLebeau
LQ Newbie
 
Registered: Aug 2006
Posts: 8

Rep: Reputation: 0
Talking 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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Root and all user accounts disabled mht17 Linux - Newbie 3 05-10-2011 07:23 PM
print user list, showing a locked user account?? royal024 Linux - Newbie 4 10-18-2008 11:57 AM
all user accounts and root locked out, why and how fix? ron7000 Suse/Novell 3 12-03-2007 12:38 AM
Locked-down user account lukeprog Ubuntu 6 01-28-2006 12:21 PM
Disabled access to user accounts! HELP! Adeas Mandriva 2 09-07-2003 09:17 PM


All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration