Credit scores on passwords

This commit is contained in:
Bob Mottram 2018-03-04 11:55:35 +00:00
parent eb6103f19a
commit 4ca29d02e5
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ function enforce_good_passwords {
fi
apt-get -yq install libpam-cracklib
sed -i 's/password.*requisite.*pam_cracklib.so.*/password required pam_cracklib.so retry=2 dcredit=-4 ucredit=-1 ocredit=-1 lcredit=0 minlen=10 reject_username/g' /etc/pam.d/common-password
sed -i 's/password.*requisite.*pam_cracklib.so.*/password required pam_cracklib.so retry=2 dcredit=-1 ucredit=-1 ocredit=0 lcredit=0 minlen=10 reject_username/g' /etc/pam.d/common-password
mark_completed "${FUNCNAME[0]}"
}