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.
Question
Options
- A
- B
- Cs
- Dx
How the community answered
(24 responses)- B4% (1)
- C4% (1)
- D92% (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.
An asterisk * or an exclamation mark ! in the password field typically indicates that the account is locked or disabled, preventing login.
A hyphen - is not a standard character used to indicate a shadowed password.
The letter s is not a standard character used to indicate a shadowed password.
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
Community Discussion
No community discussion yet for this question.