setup password complexity

Posted on 2012-08-16
Last Modified: 2012-08-22
I am using RHEL 3
I tried to implement the password complexity to my server by using the following entry in /etc/pam.d/system-auth
password    required      /lib/security/$ISA/ retry=3 minlen=8 dcredit=-1 ucredit=-1 lcredit=-1 ocredit=-1 difok=2

However, it seems not taking any effect.
I tried by making change on my 'root' password by following command:
# passwd
I still can change the password to a simple one such as 'abc'
Question by:francis_lai
    LVL 23

    Accepted Solution

    root will always be able to set any password, try it with a regular user account.

    Also read this:
    LVL 13

    Expert Comment

    Use the following directive in /etc/pam.d/passwd


    LVL 13

    Expert Comment

    Hi francis_lai,

    Have you tried the above work around? Thought it will work.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now