SV-258112r1045229_rule
V-258112
SRG-OS-000072-GPOS-00040
RHEL-09-611115
CAT II
10
Configure RHEL 9 to require the change of at least eight of the total number of characters when passwords are changed by setting the "difok" 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 "difok" parameter:
difok = 8
Verify that RHEL 9 requires the change of at least eight of the total number of characters when passwords are changed.
$ grep difok /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
difok = 8
If the value of "difok" is set to less than "8", or is commented out, this is a finding.
V-258112
False
RHEL-09-611115
Verify that RHEL 9 requires the change of at least eight of the total number of characters when passwords are changed.
$ grep difok /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
difok = 8
If the value of "difok" is set to less than "8", or is commented out, this is a finding.
M
5551