010-150 · Question #38
Which of the following files holds the definition of the local user accounts?
The correct answer is C. /etc/passwd. On Linux systems, /etc/passwd is the standard file that stores local user account definitions including username, UID, GID, home directory, and shell.
Question
Which of the following files holds the definition of the local user accounts?
Options
- A/etc/secret
- B/etc/users
- C/etc/passwd
- D/etc/id
- E/etc/home
How the community answered
(63 responses)- A5% (3)
- B10% (6)
- C81% (51)
- D2% (1)
- E3% (2)
Why each option
On Linux systems, /etc/passwd is the standard file that stores local user account definitions including username, UID, GID, home directory, and shell.
/etc/secret does not exist as a standard Linux system file.
/etc/users is not a standard Linux file; user data is stored in /etc/passwd.
The /etc/passwd file is the canonical database for local user accounts on Linux and Unix systems. Each line represents one user and contains seven colon-delimited fields: username, password placeholder, UID, GID, GECOS info, home directory, and login shell. It is readable by all users and is consulted by the system for user authentication and identity resolution.
/etc/id is not a standard Linux system file.
/etc/home is not a standard Linux system file; home directories are defined within /etc/passwd.
Concept tested: Linux local user account database file
Source: https://man7.org/linux/man-pages/man5/passwd.5.html
Topics
Community Discussion
No community discussion yet for this question.