nerdexam
CompTIA

LX0-104 · Question #23

Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

The correct answer is D. x. The character x in the password field of /etc/passwd indicates that the actual encrypted password hash is stored in the /etc/shadow file.

Security

Question

Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

Options

  • A
  • B
  • Cs
  • Dx

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    4% (1)
  • D
    88% (23)

Why each option

The character `x` in the password field of `/etc/passwd` indicates that the actual encrypted password hash is stored in the `/etc/shadow` file.

A*

An asterisk `*` in the password field of `/etc/passwd` typically indicates that the account is locked or disabled, not that the password is in `/etc/shadow`.

B-

A hyphen `-` is not a standard character used in this context to indicate shadow passwords.

Cs

The letter `s` is not used in the password field to denote shadow passwords.

DxCorrect

When a Linux system uses shadow passwords, the password field in `/etc/passwd` (which is publicly readable) contains an `x` as a placeholder. This `x` signifies that the real, encrypted password hash is securely stored in the `/etc/shadow` file, which has restricted permissions (only readable by root). This separation prevents unauthorized users from accessing password hashes, enhancing system security.

Concept tested: /etc/passwd shadow password indicator

Source: https://man7.org/linux/man-pages/man5/passwd.5.html

Topics

#/etc/passwd#/etc/shadow#password storage#user authentication

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice