A systems administrator needs to enforce a new security policy that requires all user passwords to have a minimum length of 12 characters. Which file should the administrator edit to configure this system-wide setting for user accounts?
The correct file to modify is /etc/login.defs. This file contains system-wide definitions for the shadow password suite, including the PASS_MIN_LEN parameter, which sets the minimum number of characters required for a password. The /etc/shadow file stores user password hashes and aging information, but not policy settings. The /etc/default/useradd file sets default options for creating new users, such as their default shell or home directory, but does not include password length. The /etc/security/limits.conf file is used to set resource limits for users, such as the maximum number of open files or processes, not password policies.
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/login.defs` file?
Open an interactive chat with Bash
Why is `/etc/shadow` not used to enforce password policy settings?
Open an interactive chat with Bash
How does the `PASS_MIN_LEN` parameter in `/etc/login.defs` work?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .