skip console_users_check for Qubes users

This commit is contained in:
Patrick Schleizer 2019-12-16 06:46:48 -05:00
parent ab68182e11
commit 62eb462920
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -94,6 +94,13 @@ sudo_users_check () {
}
console_users_check() {
if command -v "qubesdb-read" &>/dev/null; then
## Qubes users can use dom0 to get a root terminal emulator.
## For example:
## qvm-run -u root debian-10 xterm
return 0
fi
console_users="$(getent group console | cut -d: -f4)"
## example ssh_users:
## user