- Lab
- A Cloud Guru
Configure a Password Complexity Policy
In this lab, we will create a password complexity policy that will require users to enter a password that meets our defined password requirements when creating a new password. Password policies help us guarantee passwords used on our systems are secure passwords. *This course is not approved or sponsored by Red Hat.*
Path Info
Table of Contents
-
Challenge
Configure a Password Complexity Policy
- To create the password requirements in the policy, we need to edit the
/etc/security/pwquality.conf
file and include the following:
minlen = 12 maxrepeat = 2 minclass = 4 ucredit = -3 dcredit = -3 badword = password, pass, word
- To create the password requirements in the policy, we need to edit the
-
Challenge
Put the Password Complexity Policy into Effect
- In order to put the new policy into effect, we need to add the following line to the
/etc/pam.d/passwd
file:
password required pam_pwquality.so retry=3
- This line should be inserted as the first line with the word "password", the third uncommented line in the default configuration of the file.
- In order to put the new policy into effect, we need to add the following line to the
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.