RHEL and passwd

Posted on 2011-04-28
Last Modified: 2013-11-17
I looked at the man page for the command passwd, but I can not find out how to do this

I want to force passwd to allow me to change a password, even if it does not like the password I choose:  For example, I want to create a user named 'usr' and give him the password named 'password'

[root@WEST5 ~]# adduser usr
[root@WEST5 ~]# passwd usr
Changing password for user usr.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:

Open in new window

How can I do this ?
Question by:Los Angeles1
    LVL 12

    Expert Comment

    Just retype the new password, it will change the password.
    LVL 38

    Accepted Solution

    > BAD PASSWORD: it is based on a dictionary word
    It's just a warning. As root account, it bypasses the enforcement.
    You can set any password as you like.

    > Retype new UNIX password:
    It tells you "retype" - REPEAT the previous one, not type another one.
    For setting password, it always asks you set twice in case typo at the first time.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    734 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

    22 Experts available now in Live!

    Get 1:1 Help Now