In this guide, we are going to learn how to enforce password complexity policy on CentOS 7/RHEL based derivatives. Our previous guide covered the enforcement of password complexity on Ubuntu 18.04. You can check the same by following the link below;
Enforce Password Complexity Policy On CentOS 7
Similar to our previous guide, we are going to use PAM pwquality
modules to enforce password complexity policy on CentOS 7/RHEL based derivatives.
In Ubuntu or Debian based derivatives, we modified the, /etc/pam.d/common-password
configuration file. For CentOS 7 or similar derivatives, the /etc/security/pwquality.conf
or /etc/pam.d/system-auth
configuration file is used.
As our normalcy, make a backup of the configuration file before making changes just in case things go south.
继续阅读