Fix pattern match
This commit is contained in:
parent
b094ff09eb
commit
fa1e26975b
|
@ -324,7 +324,7 @@ function enforce_good_passwords {
|
||||||
fi
|
fi
|
||||||
apt-get -y --force-yes install libpam-cracklib
|
apt-get -y --force-yes install libpam-cracklib
|
||||||
|
|
||||||
sed -i 's/password.*requisite.*pam_cracklib.so retry=3 minlen=8 difok=3/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=-4 ucredit=-1 ocredit=-1 lcredit=0 minlen=10 reject_username/g' /etc/pam.d/common-password
|
||||||
echo 'enforce_good_passwords' >> $COMPLETION_FILE
|
echo 'enforce_good_passwords' >> $COMPLETION_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue