LX0-104 · Question #23
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 D. x. The character x 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
(26 responses)- A8% (2)
- B4% (1)
- D88% (23)
Why each option
The character `x` in the password field of `/etc/passwd` indicates that the actual encrypted password hash is stored in the `/etc/shadow` file.
An asterisk `*` in the password field of `/etc/passwd` typically indicates that the account is locked or disabled, not that the password is in `/etc/shadow`.
A hyphen `-` is not a standard character used in this context to indicate shadow passwords.
The letter `s` is not used in the password field to denote shadow passwords.
When a Linux system uses shadow passwords, the password field in `/etc/passwd` (which is publicly readable) contains an `x` as a placeholder. This `x` signifies that the real, encrypted password hash is securely stored in the `/etc/shadow` file, which has restricted permissions (only readable by root). This separation prevents unauthorized users from accessing password hashes, enhancing system security.
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.