2007-10-07 17:16:52 +05:30
. \" ** You probably do not want to edit this file directly **
2007-10-07 17:17:01 +05:30
. \" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
2007-10-07 17:16:52 +05:30
. \" Instead of manually editing it, you probably should edit the DocBook XML
. \" source for it and then use the DocBook XSL Stylesheets to regenerate it.
2007-10-07 17:17:11 +05:30
.TH "PASSWD" "5" "11/05/2005" "File Formats and Conversions" "File Formats and Conversions"
2007-10-07 17:16:52 +05:30
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
2007-10-07 17:14:44 +05:30
passwd \- The password file
2007-10-07 17:16:25 +05:30
.SH "DESCRIPTION"
.PP
2007-10-07 17:17:01 +05:30
\fI /etc/passwd\fR
contains one line for each user account, with seven fields delimited by colons (\(lq :\(rq ). These fields are:
2007-10-07 17:16:25 +05:30
.TP 3
\(bu
login name
.TP
\(bu
optional encrypted password
.TP
\(bu
numerical user ID
.TP
\(bu
numerical group ID
.TP
\(bu
user name or comment field
.TP
\(bu
user home directory
.TP
\(bu
2007-10-07 17:17:01 +05:30
optional user command interpreter
2007-10-07 17:14:44 +05:30
.PP
2007-10-07 17:17:01 +05:30
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
\fI /etc/passwd\fR
file may decide not to permit
\fI any\fR
access at all if the
\fI password\fR
field is blank. If the
\fI password\fR
field is a lower\- case
\(lq x\(rq , then the encrypted password is actually stored in the
\fB shadow\fR (5)
file instead; there
\fI must\fR
be a corresponding line in the
\fI shadow\fR
file, or else the user account is invalid. If the
\fI password\fR
field is any other string, then it will be treated as an encrypted password, as specified by
\fB crypt\fR (3).
2007-10-07 17:16:07 +05:30
.PP
2007-10-07 17:17:01 +05:30
The comment field is used by various system utilities, such as
2007-10-07 17:16:52 +05:30
\fB finger\fR (1).
2007-10-07 17:14:44 +05:30
.PP
2007-10-07 17:17:01 +05:30
The home directory field provides the name of the initial working directory. The
\fB login\fR
program uses this information to set the value of the
\fB $HOME\fR
2007-10-07 17:16:52 +05:30
environmental variable.
2007-10-07 17:14:44 +05:30
.PP
2007-10-07 17:17:01 +05:30
The command interpreter field provides the name of the user's command language interpreter, or the name of the initial program to execute. The
\fB login\fR
program uses this information to set the value of the
\fB $SHELL\fR
environmental variable. If this field is empty, it defaults to the value
2007-10-07 17:16:52 +05:30
\fI /bin/sh\fR .
2007-10-07 17:16:25 +05:30
.SH "FILES"
.TP
\fI /etc/passwd\fR
user account information
2007-10-07 17:17:01 +05:30
.TP
\fI /etc/shadow\fR
optional encrypted password file
2007-10-07 17:16:25 +05:30
.SH "SEE ALSO"
2007-10-07 17:14:44 +05:30
.PP
2007-10-07 17:17:01 +05:30
\fB getent\fR (1),
\fB login\fR (1),
\fB passwd\fR (1),
\fB su\fR (1),
\fB crypt\fR (3),
\fB getpwnam\fR (3),
\fB shadow\fR (5),
\fB pwconv\fR (8),
\fB pwunconv\fR (8),
\fB sulogin\fR (8).