nerdexam
CompTIA

LX0-104 · Question #487

Which of the following characters 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. An x character in the password field of /etc/passwd indicates that the actual encrypted password hash is stored in the /etc/shadow file.

Security

Question

Which of the following characters 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

(24 responses)
  • B
    4% (1)
  • C
    4% (1)
  • D
    92% (22)

Why each option

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

A*

An asterisk * or an exclamation mark ! in the password field typically indicates that the account is locked or disabled, preventing login.

B-

A hyphen - is not a standard character used to indicate a shadowed password.

Cs

The letter s is not a standard character used to indicate a shadowed password.

DxCorrect

The x character in the password field of /etc/passwd serves as a placeholder to signify that the user's encrypted password is not stored directly in this file for security reasons. Instead, the real password hash is securely kept in the /etc/shadow file, which has more restricted permissions.

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