I'm trying to implement a password security policy on my Linux Mint machine.
I configured the /etc/pam.d/common-password
file with the following lines.
password requisite pam_pwquality.so retry=3 minlen=10 dcredit=-1 ucredit=-1 lcredit=-1 ocredit=-2
password [success=1 default=ignore] pam_unix.so obscure use_authtok try_first_pass sha512 shadow
Whenever I create (adduser test
) a new user, I just get a warning (password too short, 1 digit missing etc.). If I retype the password, the users gets created.
How can I configure to force the password to meet the requirements?