Have you read the pam_cracklib manpage? The 'minlen' option is unfortunately named, because it is /not/ a minimum acceptable password length, it's a minimum acceptable password *strength*. Because pam_cracklib assigns "credits" for use of each character class, using a mix of upper/lowercase letters, numbers, and symbols will cause pam_cracklib to see the password as "longer" than it really is.
If you are trying to set a hard minimum for password length, you can use the 'min=N' option to pam_unix itself, with or without pam_cracklib.
If this is not the problem you're having, then I'll have to take a second look. Your usage looks correct, but I haven't yet tested here to be sure it works the way I understand it's supposed to.
Hi Chris,
Have you read the pam_cracklib manpage? The 'minlen' option is unfortunately named, because it is /not/ a minimum acceptable password length, it's a minimum acceptable password *strength*. Because pam_cracklib assigns "credits" for use of each character class, using a mix of upper/lowercase letters, numbers, and symbols will cause pam_cracklib to see the password as "longer" than it really is.
If you are trying to set a hard minimum for password length, you can use the 'min=N' option to pam_unix itself, with or without pam_cracklib.
If this is not the problem you're having, then I'll have to take a second look. Your usage looks correct, but I haven't yet tested here to be sure it works the way I understand it's supposed to.