SV-270733r1066688_rule
V-270733
SRG-OS-000266-GPOS-00101
UBTU-24-400330
CAT II
10
Configure Ubuntu 24.04 LTS to enforce password complexity by requiring that at least one special character be used.
Add or update the following line in the "/etc/security/pwquality.conf" file to include the "ocredit=-1" parameter:
ocredit=-1
Determine if the field "ocredit" is set in the "/etc/security/pwquality.conf" file with the following command:
$ grep -i "ocredit" /etc/security/pwquality.conf
ocredit=-1
If the "ocredit" parameter is greater than "-1", is commented out, or is missing, this is a finding.
V-270733
False
UBTU-24-400330
Determine if the field "ocredit" is set in the "/etc/security/pwquality.conf" file with the following command:
$ grep -i "ocredit" /etc/security/pwquality.conf
ocredit=-1
If the "ocredit" parameter is greater than "-1", is commented out, or is missing, this is a finding.
M
5673