nerdexam
LPI

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.

Security and File Permissions

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)
  • A
    5% (3)
  • B
    10% (6)
  • C
    81% (51)
  • D
    2% (1)
  • E
    3% (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.

A/etc/secret

/etc/secret does not exist as a standard Linux system file.

B/etc/users

/etc/users is not a standard Linux file; user data is stored in /etc/passwd.

C/etc/passwdCorrect

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.

D/etc/id

/etc/id is not a standard Linux system file.

E/etc/home

/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

#/etc/passwd#user accounts#local users#authentication

Community Discussion

No community discussion yet for this question.

Full 010-150 Practice