SV-230356r627750_rule
V-230356
SRG-OS-000069-GPOS-00037
RHEL-08-020100
CAT II
10
Configure the operating system to use "pwquality" to enforce password complexity rules.
Add the following line to both "/etc/pam.d/password-auth" and "/etc/pam.d/system-auth" (or modify the line to have the required value):
password required pam_pwquality.so retry=3
Verify the operating system uses "pwquality" to enforce the password complexity rules.
Check for the use of "pwquality" with the following commands:
$ sudo cat /etc/pam.d/password-auth | grep pam_pwquality
password required pam_pwquality.so retry=3
$ sudo cat /etc/pam.d/system-auth | grep pam_pwquality
password required pam_pwquality.so retry=3
If both commands do not return a line containing the value "pam_pwquality.so", or the line is commented out, this is a finding.
If the value of "retry" is set to "0" or greater than "3", this is a finding.
V-230356
False
RHEL-08-020100
Verify the operating system uses "pwquality" to enforce the password complexity rules.
Check for the use of "pwquality" with the following commands:
$ sudo cat /etc/pam.d/password-auth | grep pam_pwquality
password required pam_pwquality.so retry=3
$ sudo cat /etc/pam.d/system-auth | grep pam_pwquality
password required pam_pwquality.so retry=3
If both commands do not return a line containing the value "pam_pwquality.so", or the line is commented out, this is a finding.
If the value of "retry" is set to "0" or greater than "3", this is a finding.
M
2921