A Linux system administrator needs to enforce a stricter password policy. The new policy requires that all passwords must contain characters from at least three of the default character classes (uppercase, lowercase, digits, and special characters). Which of the following lines, when added to /etc/security/pwquality.conf, will implement this specific requirement?
The correct answer is minclass = 3. The pam_pwquality module, configured through /etc/security/pwquality.conf, controls password strength. The minclass directive specifically sets the minimum number of character classes (uppercase, lowercase, digits, other) required for a new password. minlen = 3 sets the minimum password length, which is different from character class requirements. difok = 3 requires that a new password must have at least 3 characters that are different from the old password. maxrepeat = 3 would set the maximum number of allowed consecutive identical characters to 3, which is a different complexity rule.
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 `/etc/security/pwquality.conf`?
Open an interactive chat with Bash
What are character classes in the context of `minclass`?
Open an interactive chat with Bash
How does `minclass` differ from other directives like `minlen` and `difok`?
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 .