Available in

(1) (1)/de (1)/es (1)/fi (1)/fr (1)/hu (1)/it (1)/ja (1)/pl (1)/ru (1)/sv (1)/tr (1SSL)/fr (1ssl) (4) (5) (5)/cs (5)/de (5)/es (5)/fr (5)/hu (5)/it (5)/ja (5)/ko (5)/pl (5)/pt (5)/pt_BR (5)/ru (5)/sv (5)/tr (5)/zh_CN (5)/zh_TW

TOC

PASSWD(5)                File Formats and Conversions                PASSWD(5)



NAME

       passwd - the password file

DESCRIPTION

       /etc/passwd contains one line for each user account, with seven fields
       delimited by colons (":"). These fields are:

       +o  login name

       +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


The encrypted password field may be blank, 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. If the password field is a
lower-case "x", 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. If the password field is any other
string, then it will be treated as an encrypted password, as specified by
crypt(3).

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 user's 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.

FILES

       /etc/passwd
          User account information.

       /etc/shadow
          optional encrypted password file

SEE ALSO

       getent(1), login(1), passwd(1), su(1), crypt(3), getpwnam(3),
       shadow(5), pwconv(8), pwunconv(8), sulogin(8).



File Formats and Conversions      07/30/2006                         PASSWD(5)

COMMENTS

Add your comment here. Whitespace and linebreaks are preserved. URLs are linked automatically.
CAPTCHA

No HTML allowed. URLs will be linked with nofollow attribute. Whitespace is preserved.