010-160 · Question #15
What information is stored in /etc/passwd? (Choose three correct answers.)
The correct answer is B. The numerical user ID C. The username D. The encrypted password. /etc/passwd stores per-user account records including the username, numerical UID, and the password field in each colon-delimited line.
Question
Options
- AThe user's storage space limit
- BThe numerical user ID
- CThe username
- DThe encrypted password
- EThe user's default shell
How the community answered
(17 responses)- A6% (1)
- B88% (15)
- E6% (1)
Why each option
/etc/passwd stores per-user account records including the username, numerical UID, and the password field in each colon-delimited line.
Disk quota limits are managed by the kernel's quota subsystem and stored in separate quota database files, not in /etc/passwd.
The third colon-delimited field in /etc/passwd is the numerical UID, which the kernel uses to identify the user for permission checks and process ownership.
The first field in each /etc/passwd entry is the username, the human-readable login name used to identify the account.
The second field in /etc/passwd is the password field - historically it held the encrypted hash directly, and in modern systems contains 'x' as a placeholder indicating the actual hash is stored in /etc/shadow.
While the login shell path is stored as the seventh field in /etc/passwd and is technically present in the file, this question's correct answer focuses on the three core identity and authentication fields: username, UID, and the password field.
Concept tested: /etc/passwd file structure and stored fields
Source: https://www.man7.org/linux/man-pages/man5/passwd.5.html
Topics
Community Discussion
No community discussion yet for this question.