nerdexam
Linux_Foundation

LFCS · 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. The 'x' character in the password field of /etc/passwd signifies that the actual encrypted password resides in the more secure /etc/shadow file.

Submitted by sofia.br· Apr 18, 2026User and Group Management

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

(44 responses)
  • A
    5% (2)
  • C
    2% (1)
  • D
    93% (41)

Why each option

The 'x' character in the password field of `/etc/passwd` signifies that the actual encrypted password resides in the more secure `/etc/shadow` file.

A*

While an asterisk `*` can appear in the password field, it 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 the password field to indicate shadow passwords.

Cs

The character 's' is not used as a placeholder for shadow passwords in `/etc/passwd`.

DxCorrect

When shadow passwords are enabled, the 'x' character is placed in the password field (the second field) of the `/etc/passwd` file for each user. This 'x' explicitly indicates that the user's encrypted password hash is stored separately in the `/etc/shadow` file, enhancing security by making `/etc/passwd` world-readable without exposing password hashes.

Concept tested: Shadow password file indicator

Topics

#passwd file structure#shadow file#user authentication#password storage

Community Discussion

No community discussion yet for this question.

Full LFCS Practice