man-pages/ru/man5/passwd.5.html
2021-03-31 01:06:50 +01:00

213 lines
5.0 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of passwd</TITLE>
</HEAD><BODY>
<H1>passwd</H1>
Section: Форматы файлов (5)<BR>Updated: 05/28/2020<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>НАЗВАНИЕ</H2>
passwd - файл паролей
<A NAME="lbAC">&nbsp;</A>
<H2>ОПИСАНИЕ</H2>
<P>
/etc/passwd
contains one line for each user account, with seven fields delimited by colons (&laquo;:&raquo;). These fields are:
<P>
<DL COMPACT><DT id="1"><DD>
&bull;
имя пользователя для входа в систему
</DL>
<P>
<DL COMPACT><DT id="2"><DD>
&bull;
необязательный зашифрованный пароль
</DL>
<P>
<DL COMPACT><DT id="3"><DD>
&bull;
числовой идентификатор пользователя
</DL>
<P>
<DL COMPACT><DT id="4"><DD>
&bull;
числовой идентификатор группы
</DL>
<P>
<DL COMPACT><DT id="5"><DD>
&bull;
ФИО пользователя или поле комментария
</DL>
<P>
<DL COMPACT><DT id="6"><DD>
&bull;
домашний каталог пользователя
</DL>
<P>
<DL COMPACT><DT id="7"><DD>
&bull;
необязательный интерпретатор командной строки пользователя
</DL>
<P>
If the
<I>password</I>
field is a lower-case
&laquo;x&raquo;, then the encrypted password is actually stored in the
<B><A HREF="/cgi-bin/man/man2html?5+shadow">shadow</A></B>(5)
file instead; there
<I>must</I>
be a corresponding line in the
/etc/shadow
file, or else the user account is invalid.
<P>
The encrypted
<I>password</I>
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
<I>any</I>
access at all if the
<I>password</I>
field is blank.
<P>
A
<I>password</I>
field which starts with an exclamation mark means that the password is locked. The remaining characters on the line represent the
<I>password</I>
field before the password was locked.
<P>
Refer to
<B><A HREF="/cgi-bin/man/man2html?3+crypt">crypt</A></B>(3)
for details on how this string is interpreted.
<P>
If the password field contains some string that is not a valid result of
<B><A HREF="/cgi-bin/man/man2html?3+crypt">crypt</A></B>(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).
<P>
The comment field is used by various system utilities, such as
<B><A HREF="/cgi-bin/man/man2html?1+finger">finger</A></B>(1).
<P>
The home directory field provides the name of the initial working directory. The
<B>login</B>
program uses this information to set the value of the
<B>$HOME</B>
environmental variable.
<P>
The command interpreter field provides the name of the user's command language interpreter, or the name of the initial program to execute. The
<B>login</B>
program uses this information to set the value of the
<B>$SHELL</B>
environmental variable. If this field is empty, it defaults to the value
/bin/sh.
<A NAME="lbAD">&nbsp;</A>
<H2>ФАЙЛЫ</H2>
<P>
/etc/passwd
<DL COMPACT><DT id="8"><DD>
содержит информацию о пользователях
</DL>
<P>
/etc/shadow
<DL COMPACT><DT id="9"><DD>
необязательный файл с шифрованными паролями
</DL>
<P>
/etc/passwd-
<DL COMPACT><DT id="10"><DD>
резервная копия файла /etc/passwd
<P>
Заметим, что этот файл используется программами из комплекта утилит shadow, но не всеми инструментами управления пользователями и паролями.
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>СМОТРИТЕ ТАКЖЕ</H2>
<P>
<B><A HREF="/cgi-bin/man/man2html?3+crypt">crypt</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?1+getent">getent</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?3+getpwnam">getpwnam</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?1+login">login</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+passwd">passwd</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?8+pwck">pwck</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+pwconv">pwconv</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+pwunconv">pwunconv</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?5+shadow">shadow</A></B>(5),
<B><A HREF="/cgi-bin/man/man2html?1+su">su</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?8+sulogin">sulogin</A></B>(8).
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="11"><A HREF="#lbAB">НАЗВАНИЕ</A><DD>
<DT id="12"><A HREF="#lbAC">ОПИСАНИЕ</A><DD>
<DT id="13"><A HREF="#lbAD">ФАЙЛЫ</A><DD>
<DT id="14"><A HREF="#lbAE">СМОТРИТЕ ТАКЖЕ</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:23 GMT, March 31, 2021
</BODY>
</HTML>