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.
Question
Options
- A
- B
- Cs
- Dx
How the community answered
(44 responses)- A5% (2)
- C2% (1)
- D93% (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.
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`.
A hyphen `-` is not a standard character used in the password field to indicate shadow passwords.
The character 's' is not used as a placeholder for shadow passwords in `/etc/passwd`.
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
Community Discussion
No community discussion yet for this question.