5.4.1 Ensure password creation requirements are configured
Audit#
Verify password creation requirements conform to organization policy.
Password length
Run the following command:
Verify the output matches:
Password complexity
Option 1
Run the following command:
Verify the output matches:
Option 2
Run the following command:
Verify the output matches:
Remediation#
The following setting is a recommend example policy. Alter these values to conform to your own organization's password policies.
Run the following command to install the pam_pwquality module:
Edit the file /etc/security/pwquality.conf and add or modify the following line for password length to conform to site policy:
Edit the file /etc/security/pwquality.conf and add or modify the following line for password complexity to conform to site policy:
Option 1
Option 2