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 ?

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.


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 .

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