I am trying to change the password security check.
I would like to set rules for the password when adding a new user.
Here is the content of my /etc/pam.d/common-password file:
password requisite pam_cracklib.so retry=3 minlen=15 difok=3 password [success=1 default=ignore] pam_unix.so obscure use_authtok try_first_pass sha512 password requisite pam_deny.so password required pam_permit.so password optional pam_gnome_keyring.so
But when adding a new user, the system is still accepting for example short passwords! It just says by the 1st try typing the password, that the pass is too short, but when i re-type it, it accepts it!
How can I prevent it? And how can I set the following rules aswell:
- Minimum length: 15 characters
- upper- and lower case
- 1 number must be included
- 1 symbol must be included