Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
passwd
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
add comment

2 Answers

up vote 3 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
adnan@adnan-ubuntu-vm:~$ 
share|improve this answer
    
Ahh, xkcd: Sandwich :D –  Lekensteyn Jan 24 '11 at 16:02
add comment
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
add comment

Your Answer

 
discard

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.