I have a requirement to set the system password with the below mentioned configuration using PAM module.
The product shall enforce all passwords to include at least
eight characters in length and three or more of following combinations:
at least one lower and upper case alpha character, at least one numeral (0-9), and a special character.
i have placed the below mentioned tags in /etc/pam.d/common-password file
when I am adding users, using useradd , these authentication is not working...
password required pam_cracklib.so retry=5 minlen=8 dcredit=1 ucredit=1 lcredit=1 ocredit=1 difok=3
password required pam_unix.so use_authtok nullok md5
where as when i am trying to change password using passwd command password check is working....
let me know in which other file i have to change so that while adding new users these password check is made...
What about setting a password at the beginning? Then the changes would have to be ok (?)