Linux /etc/shadow encrypted password field

From Brandonhutchinson.com

Revision as of 18:10, 18 September 2007 by Hutch (Talk | contribs)
Jump to: navigation, search

Description of the encrypted password field in /etc/shadow on Linux systems:

  • Contains only ! or * -- account is locked; user is unable to login
  • Contains only !! -- no password has been set; user is unable to login
  • Begins with !! -- password is locked by prefixing it with an invalid string (!), and can be unlocked using passwd -u
  • Begins with $1$ -- password is encrypted using the MD5 hash algorithm
  • All others -- password is encrypted using the crypt library function

Links:

Personal tools