Debian: Force users to use more secure login password with pam_cracklib
|
|
One of the factor that makes your system easily crackable is the weak password. PAM cracklib forces users to choose stronger password by analyzing the password strength, length and entropy.
To enable pam_cracklib in Debian / Ubuntu operating system, you need to install libpam_cracklib:
sudo apt-get install libpam_cracklib
Then edit the “/etc/pam.d/common-password” file using your favorite editor. Then, add and uncomment the following line at the end of the file.
password required pam_cracklib.so retry=3 minlen=6 difok=3
difok determines the number of same characters that allowed to be present in the old and new passwords.
Tags: auth, authentication, bash, debian, linux, pam, password, safety, security, servers, ubuntu, unix
Keep updated with the latest posts, be a part of over 1,000 subscribers! :
Subscribe to your email
You might also want to read...
- Limiting the number of connections to SSH Server using Iptables
- Crack zip file password with FCrackzip
- Test Password Strength at HowSecureIsMyPassword.net
- How to secure your SSH server
- Howto Bypass Ubuntu Login Screen
- ssh-vulkey : How to test weak SSH keys on your server
- Secure your WordPress installation now, avoid from being compromised


January 10th, 2011 at 11:03 am
Is libpam-cracklib the name of the package.
January 10th, 2011 at 11:55 am
yes it is, thanks… my article contain a typo on libpam-cracklib name.
September 18th, 2011 at 3:28 pm
I i just want to leave a simple comment to talk about your blog site was wonderful. I ran across it on yahoo lookup after experiencing lots of other information that was not likely related. I think I might come across this much earlier thinking about how good the information is.