grep string
This commit is contained in:
parent
ee6925eeb6
commit
51de0ff9b3
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue