How to modify the password quality requirements
How to modify the password quality requirements
/etc/pam.d/system-auth - Common configuration file for PAMified services
~]# cat /etc/pam.d/system-auth |
pam_pwquality.so - PAM module to perform password quality checking
These checks are configurable either by use of the module arguments or by modifying the /etc/security/pwquality.conf configuration file.
For example:
~]# vim /etc/pam.d/system-auth |
minlen=12: The password contains a minimum of 12 characters.
lcredit=-1: The password should contain at least one of the lowercase letters.
ucredit=-1: The password should contain at least one uppercase letter.
dcredit=-1: The password should contain at least one digit.
ocredit=-1: The password should contain at least one other symbols, such as @, #,! $% etc.
enforce_for_root: Ensure that the complexity policy is enforced even if the root user sets the password.