[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: три запятые в /etc/passwd



24.08.2010 10:16, alexey.kurinnij пишет:
> comment field

man 5 passwd : 9 - 21 строки



НАЗВАНИЕ
       passwd - файл паролей

ОПИСАНИЕ
       Файл /etc/passwd содержит учётные записи пользователей, по одной
в каждой строке. Строка
       состоит из семи полей, разделённых двоеточиями («:»). Поля:

       ·   имя пользователя для входа в систему

       ·   необязательный зашифрованный пароль

       ·   числовой идентификатор пользователя

       ·   числовой идентификатор группы

       ·   ФИО пользователя или поле комментария

       ·   домашний каталог пользователя

       ·   необязательный интерпретатор командной строки пользователя

       Поле с зашифрованным паролем может быть пустым, и тогда для входа
под этой учётной записью
       пароль не требуется. Однако, некоторые приложения, которые читают
файл /etc/passwd, могут
       решить не позволять любой доступ, если поле пароль пустое. Если
поле пароль содержит
       строчную «x», то шифрованный пароль хранится в файле shadow(5)
должна быть соответствующая
       строка в файле shadow, иначе учётная запись считается
недействительной. Если в поле пароль
       содержится какая-то другая строка, то она воспринимается как
шифрованный пароль, как
       определено в crypt(3).

       Поле комментария используется различными системными утилитами,
такими как finger(1).

       В поле домашнего каталога хранится начальный рабочий каталог.
Программа login использует эту
       информацию для установки значения переменной среды $HOME.

       В поле интерпретатора командной строки хранится название
интерпретатора командной строки
       пользователя или программы, которая будет запущена первой.
Программа login использует эту
       информацию для установки значения переменной среды $SHELL. Если
это поле пустое, то
       используется значение по умолчанию /bin/sh.

ФАЙЛЫ
       /etc/passwd
           содержит информацию о пользователях

       /etc/shadow
           необязательный файл с шифрованными паролями

       /etc/passwd-
           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.

СМОТРИТЕ ТАКЖЕ
       crypt(3), getent(1), getpwnam(3), login(1), passwd(1), pwck(8),
pwconv(8), pwunconv(8),
       shadow(5), su(1), sulogin(8).


Если русский не понятен, то вот на английском:



-- 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

       /etc/passwd-
           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.

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


         Roman V. Nikolaev

mail:        rshadow@rambler.ru
icq:         198-364-657
jabber:      rshadow@jabber.org
site:        http://www.rshadow.ru

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: