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 }