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...
IT & Cybersecurity Package Join Premium for Full Access