Information
minlen - Minimum acceptable size for the new password (plus one if credits are not disabled which is the default). Cannot be set to lower value than 6.
Strong passwords protect systems from being hacked through brute force methods.
Solution
Create or modify a file ending inconf in the /etc/security/pwquality.conf.d/ directory or the file /etc/security/pwquality.conf and add or modify the following line to set minlen to 14 or more. Ensure that password setting conforms to local site policy:
minlen=14
Example
:
# sed -ri 's/^s*minlens*=/# &/' /etc/security/pwquality.conf
# printf '
%s' "minlen = 14" >> /etc/security/pwquality.conf.d/50-pwlength.conf
- OR/IF - the pam-config tool has been used to configure the global PAM configuration files.
Run the following command to set password length of 14 or more characters. Ensure that password length conforms to local site policy:
# pam-config -a --cracklib-minlen=14