LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   shadow file? (https://www.linuxquestions.org/questions/linux-security-4/shadow-file-93105/)

tjm 09-15-2003 02:58 PM

shadow file?
 
Hi all,

I understand that most linux distributions shadow passwords these days. A question though...

When I log in as root and do cat /etc/shadow, only the root password has the password hash filled in. Where are all the other user's hashes stored?

Cheers,

-TJM

jpbarto 09-15-2003 03:09 PM

they are (typically) stored in /etc/shadow... is your distro redhat or something? perhaps they moved the hashes elsewhere?

tjm 09-15-2003 03:14 PM

ok... some more info:

only root is corectly filled in.
most of the others entries have either * or !! instead of a hash.
of the ~100 or so other users of the system, their usernames are not even listed :(

Cheers,

-TJM

jpbarto 09-15-2003 03:45 PM

you can try pwconv (if the user passwords appear to be stored in /etc/password) to convert an existing /etc/password over to /etc/shadow

Blinker_Fluid 09-15-2003 04:23 PM

Are you talking about system users? like mail, apache, nobody, etc?
They won't have a password set by default... They might have something like !! or * where the password should be...
Check this page out:
http://www.tldp.org/LDP/lame/LAME/li...e-formats.html

Just watch out for ones that have username:: because they do not require a password to log in.


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