nerdexam
LPI

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.

Security and File Permissions

Question

What information is stored in /etc/passwd? (Choose three correct answers.)

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)
  • A
    6% (1)
  • B
    88% (15)
  • E
    6% (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.

AThe user's storage space limit

Disk quota limits are managed by the kernel's quota subsystem and stored in separate quota database files, not in /etc/passwd.

BThe numerical user IDCorrect

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.

CThe usernameCorrect

The first field in each /etc/passwd entry is the username, the human-readable login name used to identify the account.

DThe encrypted passwordCorrect

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.

EThe user's default shell

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

#/etc/passwd#user account fields#password file

Community Discussion

No community discussion yet for this question.

Full 010-160 Practice