From 51de0ff9b35d46cf15ac6dbf60cf17431b5c3b1a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 7 Aug 2017 15:17:41 +0100 Subject: [PATCH] grep string --- src/freedombone-utils-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index f997eaa6..cc3a1893 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -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 }