nerdexam
LPI

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.

Security and File Permissions

Question

When a new user is added, where does the user ID get stored?

Options

  • A/etc/users
  • B/etc/realm
  • C/etc/pass
  • D/etc/passwd
  • E/etc/passswd

How the community answered

(45 responses)
  • B
    2% (1)
  • C
    2% (1)
  • D
    4% (2)
  • E
    91% (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.

A/etc/users

/etc/users is not a standard Linux system file and plays no role in storing user account or ID information.

B/etc/realm

/etc/realm is not a Linux user account file; it does not exist in standard Linux distributions for this purpose.

C/etc/pass

/etc/pass is not a valid Linux filename; the actual file is /etc/passwd.

D/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.

E/etc/passswdCorrect

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

#user management#/etc/passwd#user ID storage#user accounts

Community Discussion

No community discussion yet for this question.

Full 010-160 Practice