SV-281182r1195424_rule
V-281182
SRG-OS-000266-GPOS-00101
RHEL-10-600230
CAT II
10
Configure RHEL 10 to enforce password complexity by requiring that at least one special character be used by setting the "ocredit" option.
Add or update the following line in the "/etc/security/pwquality.conf" file or a configuration file in the "/etc/security/pwquality.conf.d/" directory to contain the "ocredit" parameter:
ocredit = -1
Verify RHEL 10 enforces password complexity by requiring that at least one special character be used with the following command:
$ sudo grep -s ocredit /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
/etc/security/pwquality.conf:# ocredit = 0
If the value of "ocredit" is a positive number or is commented out, this is a finding.
V-281182
False
RHEL-10-600230
Verify RHEL 10 enforces password complexity by requiring that at least one special character be used with the following command:
$ sudo grep -s ocredit /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
/etc/security/pwquality.conf:# ocredit = 0
If the value of "ocredit" is a positive number or is commented out, this is a finding.
M
5733