LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-14-2007, 07:57 AM   #1
aress
LQ Newbie
 
Registered: Mar 2006
Posts: 11

Rep: Reputation: 0
Question abt entry in shadow file


Hi,

I have entry which looks as follow in /etc/shadow file :

user1:!!MyqnYMt677y02:13580::::::

Please let me know is this account locked ? What does 2 exclamation characters mean ?

Regards,
aress
 
Old 03-14-2007, 09:28 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quoted from
Code:
man shadow
Quote:
DESCRIPTION
shadow contains the encrypted password information for user’s accounts
and optional the password aging information. Included is:

· login name

· encrypted password

[...some lines cut...]

The password field must be filled. The encrypted password consists of 13 to 24
characters from the 64 characters alphabet a thru z, A thru Z, 0 thru 9, \.
and /. Optionally it can start with a "$" character. This means the encrypted
password was generated using another (not DES) algorithm. For example if it
starts with "$1$" it means the MD5-based algorithm was used.

Refer to crypt(3) for details on how this string is interpreted.

If the password field contains some string that is not valid result of
crypt(3), for instance ! or *, the user will not be able to use a unix
password to log in, subject to pam(7).
According to that the user could not login if the password field includes '!', so that can be understood as the account being locked. I'm not sure if that's the proper or usual way of locking an account, though.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
forgotten root password, shadow entry removed matticus Linux - Security 6 07-20-2006 07:41 PM
Question about information contained in Shadow Password file cruzzz01 Linux - Security 1 06-13-2006 04:34 PM
userdel: error removing group/shadow entry essdeeay Linux - General 2 04-05-2006 05:58 AM
Shadow file question Timur Sakayev Linux - Security 4 06-07-2005 10:20 AM
no shadow entry? netquest1 Linux - General 9 02-22-2004 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:26 AM.

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
Open Source Consulting | Domain Registration