LFCS · Question #72
Which file contains the date of the last change of a user's password?
The correct answer is D. /etc/shadow. The /etc/shadow file contains encrypted user password information, including the date of the last password change.
Question
Options
- A/etc/gshadow
- B/etc/passwd
- C/etc/pwdlog
- D/etc/shadow
- E/var/log/shadow
How the community answered
(26 responses)- A8% (2)
- B4% (1)
- C4% (1)
- D85% (22)
Why each option
The /etc/shadow file contains encrypted user password information, including the date of the last password change.
/etc/gshadow stores encrypted group password information and secure group attributes, not user password change dates.
/etc/passwd contains basic user account information like username, UID, GID, home directory, and shell, but not the password hash or last change date for security reasons.
/etc/pwdlog is not a standard file for storing password change dates on Linux systems.
The /etc/shadow file stores secure user account information, including the encrypted password, password expiration policy, and the date (in days since epoch) of the last password change.
/var/log/shadow is not a standard file; /etc/shadow is the correct path for password hashes and associated dates.
Concept tested: User password aging information location
Source: https://man7.org/linux/man-pages/man5/shadow.5.html
Topics
Community Discussion
No community discussion yet for this question.