SV-275656r1148018_rule
V-275656
SRG-OS-000710-GPOS-00160
RIIM-OS-611045
CAT II
10
Configure Ubuntu OS to enforce password complexity rules.
Add or modify the following line in the "/etc/security/pwquality.conf" file:
enforcing = 1
Add or modify the following line in the "/etc/pam.d/common-password" file:
password requisite pam_pwquality.so retry=3
Note: The value of "retry" should be between "1" and "3".
Verify Ubuntu OS enforces password complexity rules by using the following command:
$ grep -i enforcing /etc/security/pwquality.conf
enforcing = 1
If "enforcing" is not "1", is commented out, or is missing, this is a finding.
Check for the use of "pwquality" by using the following command:
$ cat /etc/pam.d/common-password | grep requisite | grep pam_pwquality
password requisite pam_pwquality.so retry=3
If "retry" is set to "0" or is greater than "3", or is missing, this is a finding.
V-275656
False
RIIM-OS-611045
Verify Ubuntu OS enforces password complexity rules by using the following command:
$ grep -i enforcing /etc/security/pwquality.conf
enforcing = 1
If "enforcing" is not "1", is commented out, or is missing, this is a finding.
Check for the use of "pwquality" by using the following command:
$ cat /etc/pam.d/common-password | grep requisite | grep pam_pwquality
password requisite pam_pwquality.so retry=3
If "retry" is set to "0" or is greater than "3", or is missing, this is a finding.
M
5706