102-500 · Question #118
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 E. x. On Linux systems, an x in the password field of /etc/passwd is a placeholder that signals the actual encrypted password hash is stored in /etc/shadow rather than in /etc/passwd itself - this separation exists because /etc/passwd is world-readable, while /etc/shadow is…
Question
Options
- A
- B
- Cs
- D
- Ex
How the community answered
(29 responses)- A17% (5)
- B7% (2)
- C3% (1)
- E72% (21)
Explanation
On Linux systems, an x in the password field of /etc/passwd is a placeholder that signals the actual encrypted password hash is stored in /etc/shadow rather than in /etc/passwd itself - this separation exists because /etc/passwd is world-readable, while /etc/shadow is restricted to root. The asterisk (*) and exclamation mark are used to indicate a locked or disabled account, not a shadow redirect. A hyphen (-) has no standard meaning in this field, s is not a recognized convention, and # is used as a comment character in many config files but not in /etc/passwd password fields. A helpful memory tip: think of x as marking the spot where the password used to be - it's an "X marks the (empty) treasure chest," with the real treasure locked away in /etc/shadow.
Topics
Community Discussion
No community discussion yet for this question.