SV-281185r1195433_rule
V-281185
SRG-OS-000072-GPOS-00040
RHEL-10-600260
CAT II
10
Configure RHEL 10 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 RHEL 10 requires the change of at least eight characters when passwords are changed by checking the value of the "difok" option in "/etc/security/pwquality.conf" with the following command:
$ sudo grep difok -s /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
/etc/security/pwquality.conf:difok = 8
If the value of "difok" is set to less than "8" or is commented out, this is a finding.
V-281185
False
RHEL-10-600260
Verify RHEL 10 requires the change of at least eight characters when passwords are changed by checking the value of the "difok" option in "/etc/security/pwquality.conf" with the following command:
$ sudo grep difok -s /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
/etc/security/pwquality.conf:difok = 8
If the value of "difok" is set to less than "8" or is commented out, this is a finding.
M
5733