В этом разделе мы познакомимся с механизмом управления аккаунтами в Linux и начнем с файла /etc/passwd, в котором определены все пользователи, которые существуют в системе.
The /etc/passwd is a plain text file. It contains a list of the system’s accounts, giving for each account some useful information like user ID, group ID, home directory, shell, and more.
/etc/passwd — файл, содержащий в текстовом формате список пользовательских учётных записей (аккаунтов).
/etc/passwd contains one line for each user account, with seven fields delimited by colons (“
Like the "/etc/passwd" file, each line defines a user's information and each field is delimited by a colon (:) character. Note: The asterisk (*) value in the second field on some of the above lines means that...
Для демонстрации примеров используется выделенный сервер Ubuntu 12.04 , но любой современный дистрибутив Linux работает таким же образом. Что такое файл «/etc/passwd»?
Следует избегать изменения файла /etc/passwd вручную, если вы не знаете, что делаете. Всегда используйте команду, которая предназначена для этой цели.
The etc/passwd file is a text file with one entry per line, representing a user account.
/etc/passwd file contains many lines, one for each user. The first line contains information about root user followed by system user accounts and normal user accounts. It has 7 fields separated by colon(
example using the "nullok" or "nonull" arguments to pam_unix.so). If the encrypted password in /etc/passwd is "*NP*" (without the. quotes), the shadow record should be obtained from an NIS+.