I was trying to enforce password length to a minimum of 10 using pam_cracklib.
here is my /etc/pam.d/common-password
password requisite pam_cracklib.so retry=3 minlen=10 difok=3 dcredit=1 ocredit=1 ucredit=1
password [success=1 default=ignore] pam_unix.so obscure use_authtok try_first_pass sha512
After setting this, I am able to set passwords with less than 10 characters. I read this as a bug from https://bugs.launchpad.net/ubuntu/+source/pam/+bug/139999
Is there any fix/wayaround/alternative to enforce password length in ubuntu12.04 ?
/etc/pam.d/passwd
?