I've a problem and don't really understand how to solve it at the
Problem: Would like to control the password typed by the user, check
the length, etc...
password required pam_cracklib.so retry=3 minlen=8 dcredit=-2
Updated /etc/login.defs as well
changed PASS_MIN_LEN to 8 it was 5 before
But when trying to change the password by passwd and use ??45rN:
then it works but should not. The length of typed pwd is 7
If I change retry to 5 then the new password question retries 5 times,
but minlen and all other parameters don't work, or?
Another question is, how to apply the same rule as above when
creating a new user (if using User Manager)? E.g. It is now possible to
create a testuser with pwd blabla123
Shall I run some other program/scripts?
Is it true that if you set passwd to "??45r", then it is 5 chars that matches the criteria and the rest will be truncated?
What shall be done to force minlen=8?