mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
25 lines
769 B
Plaintext
25 lines
769 B
Plaintext
## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
|
|
## See the file COPYING for copying conditions.
|
|
|
|
## Console Lockdown
|
|
## https://forums.whonix.org/t/etc-security-hardening/8592
|
|
|
|
## This is the error message should this fail:
|
|
## sudo su
|
|
## sudo: PAM account management error: Permission denied
|
|
|
|
## see also:
|
|
## man access.conf
|
|
## man pam_access
|
|
|
|
## Usually tty7 is for X.
|
|
## Qubes uses tty1 for X.
|
|
|
|
## Allow members of group 'console' to use tty1 to tty7 and pts/0 to pts/9.
|
|
## Qubes has 'pts/0'.
|
|
+:console:tty1 tty2 tty3 tty4 tty5 tty6 tty7 pts/0 pts/1 pts/2 pts/3 pts/4 pts/5 pts/6 pts/7 pts/8 pts/9
|
|
|
|
## Everyone else except members of group 'console-unrestricted'
|
|
## are restricted from everything else.
|
|
-:ALL EXCEPT console-unrestricted :ALL
|