diff --git a/usr/lib/security-misc/pam_tally2-info b/usr/lib/security-misc/pam_tally2-info index 8cd557a..4bfe820 100755 --- a/usr/lib/security-misc/pam_tally2-info +++ b/usr/lib/security-misc/pam_tally2-info @@ -4,7 +4,7 @@ ## See the file COPYING for copying conditions. ## https://forums.whonix.org/t/etc-security-hardening-console-lockdown/8592 -if grep -q "accessfile=/etc/security/access-security-misc.conf" /etc/pam.d/common-account ; then +if grep -q "accessfile=/etc/security/access-security-misc.conf" /etc/pam.d/common-account 2>/dev/null; then if id --name --groups --zero "$PAM_USER" | grep --quiet --null-data --line-regexp --fixed-strings "console"; then console_allowed=true fi