A system administrator needs to audit user accounts and enforce a new password expiration policy. Which file must be consulted to find information about when a user's password was last changed and what the current aging policies are?
The correct answer is /etc/shadow. This file stores secure user account information, including the user's encrypted password and password aging details. The third field in each entry indicates the date of the last password change, while subsequent fields define the minimum and maximum password age, warning period, and inactivity period. The /etc/passwd file contains basic user information like username, UID, and GID, but not password aging data. The /etc/group file defines group memberships. The /etc/skel directory is a template used to populate new user home directories and does not contain information about existing users.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the `/etc/shadow` file?
Open an interactive chat with Bash
How does `/etc/shadow` differ from `/etc/passwd`?
Open an interactive chat with Bash
What fields in `/etc/shadow` are used for password aging policies?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access