Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon

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.*

Google Cloud Platform icon

Path Info

Clock icon Intermediate
Clock icon 30m
Clock icon May 17, 2019

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Configure a Password Complexity Policy

    1. 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  
  2. Challenge

    Put the Password Complexity Policy into Effect

    1. 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 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.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

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.

Start learning by doing today

View Plans