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.

This question already has an answer here:

For security reason i would like to enforce users to set 10 character password length .

How can i modify this policy ?

share|improve this question

marked as duplicate by Takkat, Aditya, Warren Hill, Amith KK, Andrea Corbellini Feb 28 '14 at 18:07

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.

1 Answer 1

Open Terminal :

sudo vi /etc/pam.d/common-password

Add :

password [success=2 default=ignore] pam_unix.so obscure sha512 **min=10**

As you can see min=xx will specify the x number of character should the password include .

share|improve this answer

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