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.

Possible Duplicate:
How to set a short password on Ubuntu?

I was wondering why the developers of Ubuntu made stricter conditions for user passwords than before? My password has to contain letters and numbers, has to be minimum this length, maximum that length. It's quite annoying. And is there any way to bypass these requirements and set my user password to something easy such as 'foobar' ?

I'm sorry if this question was already answered but I couldn't find a specific solution.

Thank you in advance.

share|improve this question

marked as duplicate by Eliah Kagan, Amith KK, devav2, Mitch, hexafraction Oct 6 '12 at 12:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Thanks a lot Eliah! –  Enroy Oct 6 '12 at 11:45
    
The Ubuntu developers probably have a legit reason but I was able to change my password to something short and easy now, while keeping in mind that it could be harmful. That's all I really needed. Thank you. –  Enroy Oct 6 '12 at 11:51
    
I'm glad you got your question answered. Since the linked question fully met your needs, we'll probably close this as a duplicate of that. (kamil's answer here could then be merged into that question.) –  Eliah Kagan Oct 6 '12 at 11:53

1 Answer 1

To decrease the minimum password length:

  1. Open the /etc/login.defs file in your preferred text editor as a root user.

  2. Change the PASS_MIN_LEN variable to the minimum number of characters for the password.

  3. Save and close the /etc/login.defs file.

share|improve this answer
    
The root user can also override the password complexity requirements. If security is not an issue, then you can just try sudo passwd $USER to set a short password. –  Black Jul 19 at 8:42

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