User Accounts
/etc/passwd |
The password file |
username
:
x
:
UID
:
GID
:
user-info
:
home-dir
:
login-shell
|
User account login name (generally limited to 8 characters). |
|
Traditional password field, set to a fixed character (usually |
|
The user identification number. |
|
The user’s primary group membership. |
|
Conventionally, contains the user’s full name and, possibly, other job-related information (e.g., office location or phone number). Up to five comma-separated subfields may be defined. |
|
The user’s home directory. |
|
The program used as the command interpreter for this user. On most systems, the /etc/shells file lists the full pathnames of valid shell programs; on AIX systems, valid shells are listed in the |
Shadow password files
/etc/shadow (Linux and Solaris)
user
:
pwd
:
changed
:
minlife
:
maxlife
:
warn
:
inactive
:
expires
:
|
Username (as in /etc/passwd). |
|
Encoded password. |
|
Last password change (Unix date format*). |
|
Minimum number of days a user must keep a new password. |
|
Maximum password lifetime, in days. |
|
Days to warn in advance of an upcoming password expiration. |
|
Days after password expiration that the account will be disabled. |
|
Date the account expires (Unix date format). ... |
Get Essential System Administration Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.