Passwd and Shadow Files

By Danny Kalev, ITworld |  How-to

A shadow file
looks like this:

root:HDJIKW1.PA:11015:0::7:7::
james:7aNicVa5rg9B:11015:0:-1:7:-1:-1:

A shadow file contains 9 fields separated by colons (the values in
parentheses are taken from the last entry of the above shadow file):

* Username (james)
* Password in an encrypted form (7aNicVa5rg9B)
* Number of days since 1/1/1970 that the password was last modified
(11015)
* Number of days left before the user is allowed to change his
password (0)
* Number of days left before the user is forced to change his
password (-1)
* Number of days in advance that the user is prompted to change his
password (7)
* Number of days left before disabling the account unless the user
changes his password (-1)
* Number of days since 1/1/1970 that the account has been disabled
(-1)
* Reserved

Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

Answers - Powered by ITworld

ITworld Answers helps you solve problems and share expertise. Ask a question or take a crack at answering the new questions below.

Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

Ask a Question
randomness