010-160 · Question #42
When a new user is added, where does the user ID get stored?
The correct answer is E. /etc/passswd. The correct answer E (/etc/passswd) appears to be a typographical error for /etc/passwd (choice D), which is the actual Linux file where user IDs are stored.
Question
Options
- A/etc/users
- B/etc/realm
- C/etc/pass
- D/etc/passwd
- E/etc/passswd
How the community answered
(45 responses)- B2% (1)
- C2% (1)
- D4% (2)
- E91% (41)
Why each option
The correct answer E (/etc/passswd) appears to be a typographical error for /etc/passwd (choice D), which is the actual Linux file where user IDs are stored.
/etc/users is not a standard Linux system file and plays no role in storing user account or ID information.
/etc/realm is not a Linux user account file; it does not exist in standard Linux distributions for this purpose.
/etc/pass is not a valid Linux filename; the actual file is /etc/passwd.
/etc/passwd is the technically correct answer, but the answer key designates E as correct - indicating E is a misspelling of /etc/passwd.
The marked answer E (/etc/passswd) is a three-s typo for /etc/passwd (choice D). The /etc/passwd file is the standard Linux database that stores user account records - including username, UID, GID, home directory, and shell - and is updated whenever a new user is created with useradd or adduser.
Concept tested: Linux user ID storage in /etc/passwd
Source: https://man7.org/linux/man-pages/man5/passwd.5.html
Topics
Community Discussion
No community discussion yet for this question.