LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Password field of shadow file (http://www.linuxquestions.org/questions/linux-software-2/password-field-of-shadow-file-4175437605/)

fakie_flip 11-17-2012 03:06 PM

Password field of shadow file
 
What's the difference between * and ! in the password field of the shadow file?

catkin 11-17-2012 08:34 PM

According to the man 5 shadow page there is no functional difference.

acid_kewpie 11-18-2012 05:09 AM

I think it is just that those characters can not be in a legitimate password hash, and as such means that no password could ever ever match it.

fakie_flip 11-19-2012 12:14 PM

Ok, so there's not really a difference unless the ! is followed by a password hash. Then it means the account was locked and can be unlocked to use the same password. I still have ! (or !! on CentOS and Fedora) for accounts that never could be logged in, and weren't locked by an administrator. Thanks for the info.


All times are GMT -5. The time now is 02:18 AM.