Linux /etc/shadow encrypted password field

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
Current revision (18:12, 18 September 2007) (edit) (undo)
 
Line 1: Line 1:
-
Description of the encrypted password field in ''/etc/shadow'' on Linux systems:
+
Description of the encrypted password field in ''/etc/shadow'' on Red Hat Linux systems:
* Contains only '''!''' or '''*''' -- account is locked; user is unable to login
* Contains only '''!''' or '''*''' -- account is locked; user is unable to login

Current revision

Description of the encrypted password field in /etc/shadow on Red Hat 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