You are not logged in.

#1 2007-06-20 07:45:02

bsdson.tw
Member
From: Taiwan
Registered: 2005-05-06
Posts: 161

password field in shadow file

According to man page, the password field should contain "invalid result" to prevent to log-in, for instance ! or *.

But in our default shadow file, it contains "x" which is NOT an "invalid result".

Shouldn't we change "x" to "!"?

BR,
bsdson.tw

Offline

#2 2007-06-20 09:57:11

cheap freelancer
Member
From: askexpert.info
Registered: 2007-06-14
Posts: 2
Website

Re: password field in shadow file

do not change it, you will not be able to login then

Offline

#3 2007-06-20 13:14:32

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: password field in shadow file

From the Linux Shadow Password HOWTO:

The x in the second field in this case is now just a place holder. The format of the /etc/passwd file really didn't change, it just no longer contains the encoded password. This means that any program that reads the /etc/passwd file but does not actually need to verify passwords will still operate correctly.

A '!' in field two disables the account...


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

Board footer

Powered by FluxBB