Credit scores on passwords
This commit is contained in:
parent
eb6103f19a
commit
4ca29d02e5
|
@ -46,7 +46,7 @@ function enforce_good_passwords {
|
||||||
fi
|
fi
|
||||||
apt-get -yq install libpam-cracklib
|
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]}"
|
mark_completed "${FUNCNAME[0]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue