skip sudo_users_check in Qubes

Qubes users can use dom0 to get a root terminal emulator.

For example:
qvm-run -u root debian-10 xterm
This commit is contained in:
Patrick Schleizer 2019-12-08 04:25:19 -05:00
parent 53e4717c62
commit ebae9eef38
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -16,6 +16,13 @@ true "
" "
sudo_users_check () { sudo_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
sudo_users="$(getent group sudo | cut -d: -f4)" sudo_users="$(getent group sudo | cut -d: -f4)"
## example sudo_users: ## example sudo_users:
## user,root ## user,root