Password Complexiety
Password complexity is essential for security, making it harder for attackers to guess or crack passwords. It protects against brute force, dictionary, and guessing attacks by using longer, unpredictable passwords with a mix of uppercase, lowercase, numbers, and special characters. It helps prevent unauthorized access and ensures compliance with security standards.
We can archieve the password complexiety on the linux servers using the package libpam-pwquality
, we will be installing it using :
We can edit the config file using the nano editor using :
Configuring Password Complexiety
By default enabling the package module it will start blocking weak passwords while setting up the new passwords but we do have options to make some changes to make it even more stricter in terms of setting password.
Password Difference
This will ensure the reuse of password characters will be banned ex : Current (Admin@2024) New (Admin@2025)
Minimum length
This will ensure the minimum length of atleast 9 characters
Password Dictionary check for weak password
This will compare the entered password with the weak passwords to ensure strong password
Password cannot be some variation of username :
As we can see upon changing passwords it is not letting weak passwords to be accepted which will eventually make the Linux security more hardened.
Last updated