From dc1dfc8c20218a5ca986f49dc96cbfc71d50533e Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sat, 7 Dec 2019 06:51:16 -0500 Subject: [PATCH] output --- usr/lib/security-misc/pam_tally2-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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