2007-10-07 17:16:16 +05:30
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
|
|
|
|
<refentry id='passwd.5'>
|
2007-10-07 17:17:01 +05:30
|
|
|
<!-- $Id: passwd.5.xml,v 1.12 2005/09/30 15:41:20 kloczek Exp $ -->
|
2007-10-07 17:16:16 +05:30
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>passwd</refentrytitle>
|
|
|
|
<manvolnum>5</manvolnum>
|
|
|
|
</refmeta>
|
|
|
|
<refnamediv id='name'>
|
|
|
|
<refname>passwd</refname>
|
|
|
|
<refpurpose>The password file</refpurpose>
|
|
|
|
</refnamediv>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='description'>
|
|
|
|
<title>DESCRIPTION</title>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
|
|
|
<filename>/etc/passwd</filename> contains one line for each
|
|
|
|
user account, with seven fields delimited by colons
|
|
|
|
(<quote>:</quote>).
|
|
|
|
These fields are:
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
2007-10-07 17:16:25 +05:30
|
|
|
<itemizedlist mark='bullet'>
|
|
|
|
<listitem>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>login name</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
<listitem>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>optional encrypted password</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
<listitem>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>numerical user ID</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
<listitem>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>numerical group ID</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
<listitem>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>user name or comment field</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
<listitem>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>user home directory</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
<listitem>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>optional user command interpreter</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<para>
|
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 <filename>/etc/passwd</filename> file
|
|
|
|
may decide not to permit <emphasis>any</emphasis> access at all if the
|
|
|
|
<emphasis>password</emphasis> field is blank. If the
|
|
|
|
<emphasis>password</emphasis> field is a lower-case <quote>x</quote>,
|
|
|
|
then the encrypted password is actually stored in the
|
|
|
|
<citerefentry><refentrytitle>shadow</refentrytitle>
|
|
|
|
<manvolnum>5</manvolnum></citerefentry> file instead; there
|
|
|
|
<emphasis>must</emphasis> be a corresponding line in the
|
|
|
|
<filename>shadow</filename> file, or else the user account is invalid.
|
|
|
|
If the <emphasis>password</emphasis> field is any other string, then
|
|
|
|
it will be treated as an encrypted password, as specified by
|
2007-10-07 17:16:25 +05:30
|
|
|
<citerefentry><refentrytitle>crypt</refentrytitle>
|
2007-10-07 17:17:01 +05:30
|
|
|
<manvolnum>3</manvolnum></citerefentry>.
|
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
2007-10-07 17:16:25 +05:30
|
|
|
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
|
|
|
The comment field is used by various system utilities, such as
|
2007-10-07 17:16:25 +05:30
|
|
|
<citerefentry><refentrytitle>finger</refentrytitle>
|
|
|
|
<manvolnum>1</manvolnum></citerefentry>.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
<para>
|
|
|
|
The home directory field provides the name of the initial working
|
|
|
|
directory. The <command>login</command> program uses this information
|
2007-10-07 17:16:16 +05:30
|
|
|
to set the value of the <envar>$HOME</envar> environmental variable.
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:25 +05:30
|
|
|
<para>
|
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 <command>login</command> program uses this information to set the
|
|
|
|
value of the <envar>$SHELL</envar> environmental variable. If this
|
|
|
|
field is empty, it defaults to the value <filename>/bin/sh</filename>.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='files'>
|
|
|
|
<title>FILES</title>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term><filename>/etc/passwd</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>user account information</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><filename>/etc/shadow</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>optional encrypted password file</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='see_also'>
|
|
|
|
<title>SEE ALSO</title>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>getent</refentrytitle><manvolnum>1</manvolnum>
|
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>login</refentrytitle><manvolnum>1</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>passwd</refentrytitle><manvolnum>1</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>su</refentrytitle><manvolnum>1</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>crypt</refentrytitle><manvolnum>3</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>getpwnam</refentrytitle><manvolnum>3</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>shadow</refentrytitle><manvolnum>5</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>pwconv</refentrytitle><manvolnum>8</manvolnum>
|
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>pwunconv</refentrytitle><manvolnum>8</manvolnum>
|
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>sulogin</refentrytitle><manvolnum>8</manvolnum>
|
|
|
|
</citerefentry>.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='author'>
|
|
|
|
<title>AUTHOR</title>
|
|
|
|
<para>Julianne Frances Haugh (jockgrrl@ix.netcom.com)</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|