Information
The pwquality dictcheck option sets whether to check for the words from the cracklib dictionary.
If the operating system allows the user to select passwords based on dictionary words, this increases the chances of password compromise by increasing the opportunity for successful guesses, and brute-force attacks.
Solution
Edit any file ending inconf in the /etc/security/pwquality.conf.d/ directory and/or the file /etc/security/pwquality.conf and comment out or remove any instance of dictcheck = 0 :
Example:
# sed -ri 's/^s*dictchecks*=/# &/' /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
- OR/IF - the pam-config tool has been used to configure the global PAM configuration files.Run the following command to enable dictcheck :
# pam-config -a --cracklib