passwd - the password file
/etc/passwd contains one line for each user account, with seven fields delimited by colons (\(lq:\(rq). These fields are:
|o||optional encrypted password|
|o||numerical user ID|
|o||numerical group ID|
|o||user name or comment field|
|o||user home directory|
|o||optional user command interpreter|
If the password field is a lower-case \(lqx\(rq, then the encrypted password is actually stored in the shadow(5) file instead; there must be a corresponding line in the /etc/shadow file, or else the user account is invalid.
The encrypted password field may be empty, in which case no password is required to authenticate as the specified login name. However, some applications which read the /etc/passwd file may decide not to permit any access at all if the password field is blank.
A password field which starts with an exclamation mark means that the password is locked. The remaining characters on the line represent the password field before the password was locked.
Refer to crypt(3) for details on how this string is interpreted.
If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means).
The comment field is used by various system utilities, such as finger(1).
The home directory field provides the name of the initial working directory. The login program uses this information to set the value of the $HOME environmental variable.
The command interpreter field provides the name of the users command language interpreter, or the name of the initial program to execute. The login program uses this information to set the value of the $SHELL environmental variable. If this field is empty, it defaults to the value /bin/sh.
User account information.
optional encrypted password file
Backup file for /etc/passwd.
Note that this file is used by the tools of the shadow toolsuite, but not by all user and password management tools.
login(1), login.defs(5), crypt(3), fgetpwent(3), getgrouplist(3), getpw(3), getpwent(3), getpwent_r(3), getpwnam(3), group(5), credentials(7), environ(7), chsh(1), passwd(1), chage(1), chfn(1), expiry(1), shadow(5), grpck(8), pwck(8), vipw(8), cppw(8), slapd-passwd(5), slapd.backends(5), mkpasswd(1), nologin(8), aer(5), join(1plan9), sync-accounts(5), grab-account(8), sync-accounts-createuser(8), sync-accounts(8), ldaptor-ldap2passwd(1), ftpd(8), exports(5), , ftpusers(5), nscd(8), yppasswd(1), makepasswd(1), mknetid(8), rpc.yppasswdd(8), ftpasswd(8), tac_plus.conf(5), userhelper(8), userinfo(1), crypt_gensalt(3), crypt_rn(3), crypt(5), , kftpd(8), opieftpd(8)