mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-15 01:47:06 -05:00
output
This commit is contained in:
parent
8636d2f629
commit
dc1dfc8c20
@ -4,7 +4,7 @@
|
|||||||
## See the file COPYING for copying conditions.
|
## See the file COPYING for copying conditions.
|
||||||
|
|
||||||
## https://forums.whonix.org/t/etc-security-hardening-console-lockdown/8592
|
## 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
|
if id --name --groups --zero "$PAM_USER" | grep --quiet --null-data --line-regexp --fixed-strings "console"; then
|
||||||
console_allowed=true
|
console_allowed=true
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user