/etc/login.defs v. /etc/pam.d
How can I tell with method of login I'm using?
I'm trying to set a password minimum length to 8 but I can't get it to work.
[root]cat /etc/login.defs | grep PASS_MIN_LEN | grep -v "#"
[root]cat /etc/pam.d/system-auth | grep minlen
password required /lib/security/pam_cracklib.so minlen=8
Neither of these seem to work. My shell is set to /bin/ksh.
After I added the pam.d entry I get this when I try to change the password to a length of 6.
Changing password for user testme.
Changing password for testme
(current) UNIX password:
Retype new password:
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
And of course the new password is only 6 characters long.
Last edited by miteycasey; 11-30-2004 at 11:56 AM.
That banging sound you hear is my head hitting the keyboard.