PASSWD(4) — Silicon Graphics
NAME
passwd − password file
DESCRIPTION
Passwd contains for each user the following information:
login name
encrypted password
numerical user ID
numerical group ID
user’s real name, and other information if desired
initial working directory
program to use as Shell
This is an ASCII file. Each field within each user’s entry is separated from the next by a colon. Each user is separated from the next by a new-line. If the password field is null, no password is demanded; if the Shell field is null, the Shell itself is used.
This file resides in directory /etc. Because of the encrypted passwords, it can and does have general read permission and can be used, for example, to map numerical user ID’s to names.
The encrypted password consists of 13 characters chosen from a 64 character alphabet (., /, 0−9, A−Z, a−z), except when the password is null in which case the encrypted password is also null. Password aging is effected for a particular user if his encrypted password in the password file is followed by a comma and a non-null string of characters from the above alphabet. (Such a string must be introduced in the first instance by the super-user.)
The first character of the age, for example M, denotes the maximum number of weeks for which a password is valid. A user who attempts to login after his password has expired will be forced to supply a new one. The next character, m say, denotes the minimum period in weeks which must expire before the password may be changed. The remaining characters define the week (counted from the beginning of 1970) when the password was last changed. (A null string is equivalent to zero.) M and m have numerical values in the range 0−63 that correspond to the 64 character alphabet shown above (i.e. / = 1 week; z = 63 weeks). If m = M = 0 (derived from the string . or ..) the user will be forced to change his password the next time he logs in (and the “age” will disappear from his entry in the password file). If m > M (signified, e.g., by the string ./) only the super-user will be able to change the password.
FILES
/etc/passwd
SEE ALSO
login(1), passwd(1), a64l(3C), crypt(3C), getpwent(3C), group(4).
Version 2.1 — January 02, 1985