What file stores user password aging policies?
The Correct Answer is: C. /etc/login.defs
The file /etc/login.defs contains system-wide settings for user account behavior, including password aging policies such as the minimum and maximum number of days before a password must be changed, and warning days before expiration. This configuration applies when new user accounts are created or when password policies are enforced across the system.
Why the other options are incorrect:
A. /etc/passwd
This file stores basic user account information, including the username, user ID (UID), group ID (GID), home directory, and default shell. While it used to hold password hashes historically, modern systems use /etc/shadow for security reasons. It does not store password aging policies.
B. /etc/shadow
This file stores secure, hashed passwords and individual password aging data for each user—such as last changed date, minimum/maximum age, and expiration—but not system-wide policies. It supports the aging mechanism but doesn’t define the default rules, which are set in /etc/login.defs.
D. /etc/group
This file contains group information such as group names, GIDs, and lists of users in each group. It is unrelated to password policies or authentication settings. It simply organizes users into groups for permission management purposes and has no role in password aging.
Discover a range of courses designed to provide you with the knowledge and skills needed to excel in your chosen field.
You don’t need one month to study and pass your test.
With Prepsaret, it takes you a few days to grasp all the concepts needed to pass your exams