102-500 practice question 9 of 30

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

Full set: 233 questions
Answer options
A: *
B: -
C: s
D: x Correct answer
Correct Answer:
D. x
Explanation

On modern Linux systems that use a shadow password suite for enhanced security, the encrypted password hash is stored in the /etc/shadow file, which is readable only by the root user. To indicate this, the password field in the world-readable /etc/passwd file contains a single lowercase 'x' character as a placeholder. This signifies that the authentication system must look up the actual password hash in the /etc/shadow file for the corresponding user account.

Why Incorrect

A: An asterisk () in the password field typically indicates that the account is locked and no password can be used to log in. B: A hyphen (-) is not a standard character used for this purpose in the password field. C: The letter 's' has no standard meaning in the password field of /etc/passwd.

References

- The Linux man-pages project. passwd(5) manual page. "If the password field contains some character, for instance an 'x', the encrypted password is in the /etc/shadow file."

- The Linux man-pages project. shadow(5) manual page. "shadow contains the encrypted password for a user account... and is pointed to by a user's /etc/passwd entry."

- Kerrisk, M. (2010). The Linux Programming Interface. No Starch Press. Chapter 8, "Users and Groups", Section 8.2, "The Password File: /etc/passwd".

Scroll to Top