Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When you install ubuntu you can input password for user account which even if are weak or un-recommended are allowed. But when from the command prompt if you type
it gives ratings on strength and does not allow the passwords to be set. Does anyone know of any force option.
man passwd
does not tell about any option like that.
If would like to a single digit password. How do I do that.

share|improve this question
up vote 5 down vote accepted

Try setting the users password as root user i.e

sudo passwd user-name

I just tried it and set my password to "a"

adnan@adnan-ubuntu-vm:~$ sudo passwd adnan
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
share|improve this answer
Ahh, xkcd: Sandwich :D – Lekensteyn Jan 24 '11 at 16:02
sudo pam-auth-update --force

Navigate to passwdqc password strength enforcement and click ok to save the change. Now you can set the password to whatever.

share|improve this answer

If you have created the user and you want to give security code to your account then just try the following steps:

  1. Open the terminal.
  2. Write passwd on terminal.
  3. Now enter the password.
  4. retype the same password as above.

I hope it works for you!! Thank you!!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.