SV-258109r1045220_rule
V-258109
SRG-OS-000266-GPOS-00101
RHEL-09-611100
CAT II
10
Configure RHEL 9 to enforce password complexity by requiring 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 that RHEL 9 enforces password complexity by requiring at least one special character with the following command:
$ sudo grep ocredit /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
ocredit = -1
If the value of "ocredit" is a positive number or is commented out, this is a finding.
V-258109
False
RHEL-09-611100
Verify that RHEL 9 enforces password complexity by requiring at least one special character with the following command:
$ sudo grep ocredit /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
ocredit = -1
If the value of "ocredit" is a positive number or is commented out, this is a finding.
M
5551