Linux /etc/shadow encrypted password field

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
(New page: * '''!''' or '''*''' -- account is locked; user is unable to login * '''!!''' -- no password has been set; user is unable to login)
Line 1: Line 1:
-
* '''!''' or '''*''' -- account is locked; user is unable to login
+
Description of the encrypted password field in ''/etc/shadow'' on Linux systems:
-
* '''!!''' -- no password has been set; user is unable to login
+
 
 +
* 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:
 +
* [http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/admin-primer/s1-acctsgrps-files.html Files Controlling User Accounts and Groups]

Revision as of 18:10, 18 September 2007

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