grep string

This commit is contained in:
Bob Mottram 2017-08-07 15:17:41 +01:00
parent ee6925eeb6
commit 51de0ff9b3
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ function set_max_login_tries {
fi
fi
if ! grep -q 'account required\t\t\tpam_tally.so' /etc/pam.d/common-account; then
if ! grep -q 'pam_tally.so' /etc/pam.d/common-account; then
sed -i '/pam_deny.so/a account required\t\t\tpam_tally.so' /etc/pam.d/common-account
fi
}