Security

A security audit of a RHEL server finds that users can set 8-character passwords. The administrator must require at least 14 characters for all local accounts that change passwords with passwd. Which change enforces this?

Show the answer

Correct answerC. Set minlen = 14 in /etc/security/pwquality.conf

The pam_pwquality module reads minlen from /etc/security/pwquality.conf and enforces the minimum length when passwords are changed. PASS_MIN_LEN in /etc/login.defs looks plausible but is obsolete and ignored on modern systems that use PAM for password quality.