• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 579
  • Last Modified:

RHEL and passwd

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 ?
Los Angeles1
Los Angeles1
1 Solution
Just retype the new password, it will change the password.
> 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now