Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shadow password file question

Status
Not open for further replies.

hercu1es23

Technical User
Oct 19, 2004
11
US
Good day,

I am reviewing a sample shadow file for unix.

However, the passowrd field is not the same format or consistent .........

In some cases, the password is encypted as it should be, in others, it is blank.
In addition to this some user entries contain "NONE", "X" or "NP"

I want to assume that all these variations means that there are no passwords............but i cannot find any documentation explaining these different values ....

can anyone explain or please let know of documentation that explains this.

Thank much

Herc
 
LK = Locked
NP = No Passwd

X = the password for the user is already in /etc/shadow and should not be modified (x is in /etc/passwd)
 
Thank kHz,

If anyone know what the value 'X' or 'None' in the shadow file refers to............please let me know.

 
I would assume that those accounts are unable to logon, as that string can never be generated by encryption routines.

During logon, the password entered by the user is encrypted and compared with the stored password in the shadow file. If it matches, logon proceeds...

Perhaps your system reacts differently for the possible strings that are entered in the shadow file. You can always experiment with those accounts and see if you get a different message when trying to login with an account that has 'NP' or one that has 'None' (or 'X' or 'LK'). Just type whatever at the 'Password:' prompt and look at the resulting message/warning.



HTH,

p5wizard
 
See man passwd
value of 'x' indicates that the password for the user is
already in /etc/shadow and should not be modified.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top