What file stores user password aging policies - CompTIA Linux + XK0-005

Question

What file stores user password aging policies?

Answers
  1. correct
Explanation

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.

Related Courses

Discover a range of courses designed to provide you with the knowledge and skills needed to excel in your chosen field.

a prepsaret exam featured image
CompTIA Prep

220-1201 - CompTIA A+ Exam Core 1

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

220-1202 - CompTIA A+ Exam Core 2

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA SecurityX CAS-005

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Cloud Essentials+ CLO-002

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Network+ N10-009

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Security+ SY0-701

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Data + DA0-001

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Pentest+

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA CySA+ CSO-003

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA DataSys+ DS0-001

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Tech+ FC0-U71

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Cloud+ CV0-004

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Server+ SK0-005

Start Course Prep

Easy way to pass your test within a week with prepsaret

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

View Courses Offered