Install libpam-cracklib, and change your /etc/pam.d/common-password file to the following:
password required pam_cracklib.so retry=3 minlen=6 password required pam_unix.so md5 This sets up a chain in which pam_cracklib is called (a password-strength checker), requiring that the password be at least six characters and pass a dictionary check. Then it calls the normal pam_unix library to set the password as an MD5 hash in /etc/passwd. On Thu, 2004-04-15 at 08:05, Rory Campbell-Lange wrote: > I'm using testing which seems to have a somewhat different PAM setup > that before. > > I'd like to know how to set a minimum password length to 6 characters. > Also, is it possible to fail 'passwd' if the password fails the > dictionary check? > > Thanks for any help. > Rory > -- > Rory Campbell-Lange > <[EMAIL PROTECTED]> > <www.campbell-lange.net> -- Stephen Touset <[EMAIL PROTECTED]>
signature.asc
Description: This is a digitally signed message part