This commit is contained in:
Patrick Schleizer 2019-12-07 06:51:16 -05:00
parent 8636d2f629
commit dc1dfc8c20
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -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