Skip to content
Snippets Groups Projects
Commit 51de0ff9 authored by Bob Mottram's avatar Bob Mottram
Browse files

grep string

parent ee6925ee
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment