sudo / doas / sudoless / privleap
From Kicksecure
< Dev
sudo replacement development considerations - doas / sudoless / privleap
This has been implemented. Past notes.
1
Contents
- 1 Introduction
- 2 Changes
- 3 goals
- 4 non-goals
- 5 List
- 5.1 kicksecure/live-config-dist/etc/sudoers.d/live-config-dist
- 5.2 kicksecure/sdwdate/etc/sudoers.d/sdwdate
- 5.3 kicksecure/sdwdate-gui/etc/sudoers.d/sdwdate-gui
- 5.4 kicksecure/security-misc/etc/sudoers.d/security-misc
- 5.5 kicksecure/setup-dist/etc/sudoers.d/setup-dist
- 5.6 kicksecure/systemcheck/etc/sudoers.d/systemcheck
- 5.7 kicksecure/tb-starter/etc/sudoers.d/tb-starter
- 5.8 kicksecure/tb-updater/etc/sudoers.d/tpo-downloader
- 5.9 kicksecure/usability-misc/etc/sudoers.d/upgrade-passwordless
- 5.10 whonix/anon-gw-anonymizer-config/etc/sudoers.d/anonymizer-config-gateway
- 5.11 /etc/sudoers.d/qt_x11_no_mitshm
- 5.12 /etc/sudoers.d/qubes
- 5.13 /etc/sudoers.d/qubes-input-trigger
- 5.14 /etc/sudoers.d/umask
- 5.15 pkexec
Introduction[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#Introduction
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#Introduction|Introduction]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Introduction](https://www.kicksecure.com/wiki/Dev/sudo#Introduction)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Introduction](https://www.kicksecure.com/wiki/Dev/sudo#Introduction)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#Introduction]Introduction[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
See also No Access to Privilege Escalation Tools for Limited Accounts.
Changes[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#Changes
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#Changes|Changes]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Changes](https://www.kicksecure.com/wiki/Dev/sudo#Changes)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Changes](https://www.kicksecure.com/wiki/Dev/sudo#Changes)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#Changes]Changes[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- based on https://forums.whonix.org/t/replace-sudo-with-doas/17482/18
- removed commented out
- removed resolved cases
goals[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#goals
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#goals|goals]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[goals](https://www.kicksecure.com/wiki/Dev/sudo#goals)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[goals](https://www.kicksecure.com/wiki/Dev/sudo#goals)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#goals]goals[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- sudoless
non-goals[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#non-goals
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#non-goals|non-goals]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[non-goals](https://www.kicksecure.com/wiki/Dev/sudo#non-goals)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[non-goals](https://www.kicksecure.com/wiki/Dev/sudo#non-goals)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#non-goals]non-goals[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas
List[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#List
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#List|List]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[List](https://www.kicksecure.com/wiki/Dev/sudo#List)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[List](https://www.kicksecure.com/wiki/Dev/sudo#List)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#List]List[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
kicksecure/live-config-dist/etc/sudoers.d/live-config-dist
[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Flive-config-dist.2Fetc.2Fsudoers.d.2Flive-config-dist
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#kicksecure.2Flive-config-dist.2Fetc.2Fsudoers.d.2Flive-config-dist|kicksecure/live-config-dist/etc/sudoers.d/live-config-dist]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[kicksecure/live-config-dist/etc/sudoers.d/live-config-dist](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Flive-config-dist.2Fetc.2Fsudoers.d.2Flive-config-dist)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[kicksecure/live-config-dist/etc/sudoers.d/live-config-dist](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Flive-config-dist.2Fetc.2Fsudoers.d.2Flive-config-dist)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Flive-config-dist.2Fetc.2Fsudoers.d.2Flive-config-dist]kicksecure/live-config-dist/etc/sudoers.d/live-config-dist[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas:
- More commands with
nopasswd
exceptions.
- More commands with
- sudoless:
- start calamares only in sysmaint (form sysmaint-panel) or in unrestricted admin mode
- Status
- Implemented.
kicksecure/sdwdate/etc/sudoers.d/sdwdate
[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsdwdate.2Fetc.2Fsudoers.d.2Fsdwdate
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#kicksecure.2Fsdwdate.2Fetc.2Fsudoers.d.2Fsdwdate|kicksecure/sdwdate/etc/sudoers.d/sdwdate]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[kicksecure/sdwdate/etc/sudoers.d/sdwdate](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsdwdate.2Fetc.2Fsudoers.d.2Fsdwdate)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[kicksecure/sdwdate/etc/sudoers.d/sdwdate](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsdwdate.2Fetc.2Fsudoers.d.2Fsdwdate)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsdwdate.2Fetc.2Fsudoers.d.2Fsdwdate]kicksecure/sdwdate/etc/sudoers.d/sdwdate[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas:
- This one's a problem. Whereas the previous files provide
nopasswd
exceptions to specific users and groups, this file allows *anyone* to run/usr/sbin/sdwdate-clock-jump
as root. doas lacks the ability to express a universal exception such as this, you can only grant exceptions to specific users or groups. The only files that actually attempt to usesdwdate-clock-jump
via sudo are:kicksecure/sdwdate-gui/usr/lib/python3/dist-packages/sdwdate_gui/sdwdate_gui.py
kicksecure/sdwdate-gui/usr/lib/python3/dist-packages/sdwdate_gui/sdwdate_gui_qubes.py
kicksecure/sdwdate-gui/etc/qubes-rpc/whonix.GatewayCommand
- It's likely that all of these can be coped with by using doas's configuration by simply determining the users or groups these run as, and adding them to the configuration file. Adding the
users
group to the config would also be advisable as Debian'sadduser
tool will automatically add new "standard" user accounts to this group. Unfortunatelyuseradd
doesn't do this, but the end-user can probably resolve this themselves if they so choose.ALL ALL=NOPASSWD: /usr/sbin/sdwdate-clock-jump
- Translates roughly to:
permit nopass :users cmd /usr/sbin/sdwdate-clock-jump
- This one's a problem. Whereas the previous files provide
- sudoless:
- Use capabilities?
- OR don't allow user to set the clock? Tell users to boot into sysmaint mode instead?
- With privleap, port to privleap and keep all functionality.
- Status
- In progress, using privleap-based solution.
kicksecure/sdwdate-gui/etc/sudoers.d/sdwdate-gui
[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsdwdate-gui.2Fetc.2Fsudoers.d.2Fsdwdate-gui
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#kicksecure.2Fsdwdate-gui.2Fetc.2Fsudoers.d.2Fsdwdate-gui|kicksecure/sdwdate-gui/etc/sudoers.d/sdwdate-gui]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[kicksecure/sdwdate-gui/etc/sudoers.d/sdwdate-gui](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsdwdate-gui.2Fetc.2Fsudoers.d.2Fsdwdate-gui)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[kicksecure/sdwdate-gui/etc/sudoers.d/sdwdate-gui](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsdwdate-gui.2Fetc.2Fsudoers.d.2Fsdwdate-gui)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsdwdate-gui.2Fetc.2Fsudoers.d.2Fsdwdate-gui]kicksecure/sdwdate-gui/etc/sudoers.d/sdwdate-gui[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas:
- User-specific
nopasswd
exceptions for specific commands. Easy to translate.
- User-specific
- sudoless:
- Same as above.
- Status
- In progress, using privleap-based solution.
kicksecure/security-misc/etc/sudoers.d/security-misc
[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsecurity-misc.2Fetc.2Fsudoers.d.2Fsecurity-misc
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#kicksecure.2Fsecurity-misc.2Fetc.2Fsudoers.d.2Fsecurity-misc|kicksecure/security-misc/etc/sudoers.d/security-misc]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[kicksecure/security-misc/etc/sudoers.d/security-misc](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsecurity-misc.2Fetc.2Fsudoers.d.2Fsecurity-misc)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[kicksecure/security-misc/etc/sudoers.d/security-misc](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsecurity-misc.2Fetc.2Fsudoers.d.2Fsecurity-misc)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsecurity-misc.2Fetc.2Fsudoers.d.2Fsecurity-misc]kicksecure/security-misc/etc/sudoers.d/security-misc[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas:
- One user-specific and one group-specific
nopasswd
exception, easily translatable.
- One user-specific and one group-specific
- sudoless:
- Could be re-implemented using a
.done
file and systemd unit files.
- Could be re-implemented using a
- Status
- No longer needs done, the only sudoers config left here is actually just umask config stuff.
kicksecure/setup-dist/etc/sudoers.d/setup-dist
[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsetup-dist.2Fetc.2Fsudoers.d.2Fsetup-dist
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#kicksecure.2Fsetup-dist.2Fetc.2Fsudoers.d.2Fsetup-dist|kicksecure/setup-dist/etc/sudoers.d/setup-dist]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[kicksecure/setup-dist/etc/sudoers.d/setup-dist](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsetup-dist.2Fetc.2Fsudoers.d.2Fsetup-dist)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[kicksecure/setup-dist/etc/sudoers.d/setup-dist](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsetup-dist.2Fetc.2Fsudoers.d.2Fsetup-dist)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsetup-dist.2Fetc.2Fsudoers.d.2Fsetup-dist]kicksecure/setup-dist/etc/sudoers.d/setup-dist[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas:
- Simple group-specific
nopasswd
exception, easily translatable.
- Simple group-specific
- sudoless:
- setup-dist does not do much anymore anyhow. The done file could be moved to user home location.
- Status
- In progress, using privleap-based solution.
kicksecure/systemcheck/etc/sudoers.d/systemcheck
[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsystemcheck.2Fetc.2Fsudoers.d.2Fsystemcheck
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#kicksecure.2Fsystemcheck.2Fetc.2Fsudoers.d.2Fsystemcheck|kicksecure/systemcheck/etc/sudoers.d/systemcheck]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[kicksecure/systemcheck/etc/sudoers.d/systemcheck](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsystemcheck.2Fetc.2Fsudoers.d.2Fsystemcheck)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[kicksecure/systemcheck/etc/sudoers.d/systemcheck](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsystemcheck.2Fetc.2Fsudoers.d.2Fsystemcheck)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fsystemcheck.2Fetc.2Fsudoers.d.2Fsystemcheck]kicksecure/systemcheck/etc/sudoers.d/systemcheck[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas:
- Complex, but looks doable. Many user-specific
nopasswd
exceptions, however some of these are targeted to allow the user to execute a command as another user *other than root*. Thankfully doas supports this.user ALL=(sdwdate) NOPASSWD: /usr/libexec/helper-scripts/onion-time-pre-script
- Translates to:
permit nopass user as sdwdate cmd /usr/libexec/helper-scripts/onion-time-pre-script
- Complex, but looks doable. Many user-specific
- sudoless:
- Only sysmaint would be able to run systemcheck.
- Status
- In progress. Requires changes to setup-dist and setup-wizard-dist to properly implement.
kicksecure/tb-starter/etc/sudoers.d/tb-starter
[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Ftb-starter.2Fetc.2Fsudoers.d.2Ftb-starter
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#kicksecure.2Ftb-starter.2Fetc.2Fsudoers.d.2Ftb-starter|kicksecure/tb-starter/etc/sudoers.d/tb-starter]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[kicksecure/tb-starter/etc/sudoers.d/tb-starter](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Ftb-starter.2Fetc.2Fsudoers.d.2Ftb-starter)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[kicksecure/tb-starter/etc/sudoers.d/tb-starter](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Ftb-starter.2Fetc.2Fsudoers.d.2Ftb-starter)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Ftb-starter.2Fetc.2Fsudoers.d.2Ftb-starter]kicksecure/tb-starter/etc/sudoers.d/tb-starter[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas:
- A user-specific
nopasswd
exception with some environment variable allowances. Can be handled using techniques mentioned earlier.
- A user-specific
- sudoless:
- Could be re-implemented using systemd unit files and/or Debian maintainer scripts.
- Status
- In progress, using privleap-based solution.
kicksecure/tb-updater/etc/sudoers.d/tpo-downloader
[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Ftb-updater.2Fetc.2Fsudoers.d.2Ftpo-downloader
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#kicksecure.2Ftb-updater.2Fetc.2Fsudoers.d.2Ftpo-downloader|kicksecure/tb-updater/etc/sudoers.d/tpo-downloader]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[kicksecure/tb-updater/etc/sudoers.d/tpo-downloader](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Ftb-updater.2Fetc.2Fsudoers.d.2Ftpo-downloader)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[kicksecure/tb-updater/etc/sudoers.d/tpo-downloader](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Ftb-updater.2Fetc.2Fsudoers.d.2Ftpo-downloader)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Ftb-updater.2Fetc.2Fsudoers.d.2Ftpo-downloader]kicksecure/tb-updater/etc/sudoers.d/tpo-downloader[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas:
- More user- and group-specific
nopasswd
exceptions. Easily translatable.
- More user- and group-specific
- sudoless:
- Same as above.
- Status
- In progress, using privleap-based solution.
kicksecure/usability-misc/etc/sudoers.d/upgrade-passwordless
[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fusability-misc.2Fetc.2Fsudoers.d.2Fupgrade-passwordless
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#kicksecure.2Fusability-misc.2Fetc.2Fsudoers.d.2Fupgrade-passwordless|kicksecure/usability-misc/etc/sudoers.d/upgrade-passwordless]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[kicksecure/usability-misc/etc/sudoers.d/upgrade-passwordless](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fusability-misc.2Fetc.2Fsudoers.d.2Fupgrade-passwordless)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[kicksecure/usability-misc/etc/sudoers.d/upgrade-passwordless](https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fusability-misc.2Fetc.2Fsudoers.d.2Fupgrade-passwordless)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#kicksecure.2Fusability-misc.2Fetc.2Fsudoers.d.2Fupgrade-passwordless]kicksecure/usability-misc/etc/sudoers.d/upgrade-passwordless[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas:
- Group-specific
nopasswd
exception, easily translatable.
- Group-specific
- sudoless:
- Only sysmaint should be able to run upgrade-nonroot.
- Status
- In progress.
whonix/anon-gw-anonymizer-config/etc/sudoers.d/anonymizer-config-gateway
[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#whonix.2Fanon-gw-anonymizer-config.2Fetc.2Fsudoers.d.2Fanonymizer-config-gateway
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#whonix.2Fanon-gw-anonymizer-config.2Fetc.2Fsudoers.d.2Fanonymizer-config-gateway|whonix/anon-gw-anonymizer-config/etc/sudoers.d/anonymizer-config-gateway]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[whonix/anon-gw-anonymizer-config/etc/sudoers.d/anonymizer-config-gateway](https://www.kicksecure.com/wiki/Dev/sudo#whonix.2Fanon-gw-anonymizer-config.2Fetc.2Fsudoers.d.2Fanonymizer-config-gateway)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[whonix/anon-gw-anonymizer-config/etc/sudoers.d/anonymizer-config-gateway](https://www.kicksecure.com/wiki/Dev/sudo#whonix.2Fanon-gw-anonymizer-config.2Fetc.2Fsudoers.d.2Fanonymizer-config-gateway)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#whonix.2Fanon-gw-anonymizer-config.2Fetc.2Fsudoers.d.2Fanonymizer-config-gateway]whonix/anon-gw-anonymizer-config/etc/sudoers.d/anonymizer-config-gateway[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas:
- More user-specific
nopasswd
exceptions. Easily translatable.
- More user-specific
- sudoless:
- Whonix issue only. Not a Kicksecure issue. Whonix-Gateway could always boot into unrestricted admin mode?
- We want to support sudoless on Whonix-Gateway, so this probably should be dealt with.
- Status
- In progress, using privleap-based solution.
/etc/sudoers.d/qt_x11_no_mitshm
[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fqt_x11_no_mitshm
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#.2Fetc.2Fsudoers.d.2Fqt_x11_no_mitshm|/etc/sudoers.d/qt_x11_no_mitshm]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[/etc/sudoers.d/qt_x11_no_mitshm](https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fqt_x11_no_mitshm)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[/etc/sudoers.d/qt_x11_no_mitshm](https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fqt_x11_no_mitshm)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fqt_x11_no_mitshm]/etc/sudoers.d/qt_x11_no_mitshm[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas:
- Specifies an environment variable to be preserved that affects all utilities on the system that leverage Qt. Depending on how exactly this rule is used, this could be trivial to translate, or it could be slightly tricky.
Defaults env_keep += "QT_X11_NO_MITSHM"
- Translates to (roughly):
permit setenv { QT_X11_NO_MITSHM } :sudo
- Specifies an environment variable to be preserved that affects all utilities on the system that leverage Qt. Depending on how exactly this rule is used, this could be trivial to translate, or it could be slightly tricky.
- sudoless:
- Only user "sysmaint".
- Alternatively, could introduce support for setting environment variables universally in all executables run by privleap?
- Status
- Needs discussion.
/etc/sudoers.d/qubes
[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fqubes
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#.2Fetc.2Fsudoers.d.2Fqubes|/etc/sudoers.d/qubes]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[/etc/sudoers.d/qubes](https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fqubes)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[/etc/sudoers.d/qubes](https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fqubes)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fqubes]/etc/sudoers.d/qubes[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas:
- This looks like a generic account-wide
nopasswd
exception for thequbes
group. There's some SELinux stuff going on with it that can't be ported, but since Kicksecure is based on Debian, I don't expect this to be a problem (I don't believe SELinux is even *used* in Whonix or other Debian-based Qubes).
- This looks like a generic account-wide
- sudoless:
- Not an issue since also not an issue for doas.
/etc/sudoers.d/qubes-input-trigger
[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fqubes-input-trigger
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#.2Fetc.2Fsudoers.d.2Fqubes-input-trigger|/etc/sudoers.d/qubes-input-trigger]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[/etc/sudoers.d/qubes-input-trigger](https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fqubes-input-trigger)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[/etc/sudoers.d/qubes-input-trigger](https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fqubes-input-trigger)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fqubes-input-trigger]/etc/sudoers.d/qubes-input-trigger[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas:
- Contains several
NOPASSWD
exceptions for starting various Qubes input-related services as root. There are four sets of nine services each, each set is handled by one line of sudoers config, which covers all nine services with the help of a regex match. We don't get regex matching in doas, so this would have to be replaced with 36 lines of doas configuration. Not great, but not horrible.user ALL=(root) NOPASSWD:/bin/systemctl --no-block start qubes-input-sender-keyboard@event[0-9].service
- Translates to:
permit nopass user as root cmd /bin/systemctl args --no-block start qubes-input-sender-keyboard@event0.service
, plus eight more lines withevent1.service
,event2.service
, etc.
- Contains several
- sudoless:
- Does not actually need handled at all. The services in this file are only useful in VMs like sys-usb, since they are designed to send input events from one VM to another, usually from sys-usb to dom0. See https://github.com/QubesOS/qubes-app-linux-input-proxy
.
- Does not actually need handled at all. The services in this file are only useful in VMs like sys-usb, since they are designed to send input events from one VM to another, usually from sys-usb to dom0. See https://github.com/QubesOS/qubes-app-linux-input-proxy
/etc/sudoers.d/umask
[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fumask
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#.2Fetc.2Fsudoers.d.2Fumask|/etc/sudoers.d/umask]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[/etc/sudoers.d/umask](https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fumask)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[/etc/sudoers.d/umask](https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fumask)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#.2Fetc.2Fsudoers.d.2Fumask]/etc/sudoers.d/umask[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- doas:
- Trouble. This one changes umask settings for sudo commands in general. doas handles umask configuration entirely on its own and does not allow the end-user to configure it. Thus this cannot be translated. Depending on what doas's umask settings are and how vital this configuration is, this may or may not be a blocker.
- sudoless:
- Not a problem, because umask is inherited from privleapd which has a "normal" umask, while umask for user
user
remains locked down.
- Not a problem, because umask is inherited from privleapd which has a "normal" umask, while umask for user
pkexec[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo#pkexec
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo#pkexec|pkexec]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[pkexec](https://www.kicksecure.com/wiki/Dev/sudo#pkexec)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[pkexec](https://www.kicksecure.com/wiki/Dev/sudo#pkexec)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo#pkexec]pkexec[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- sudoless:
- List of affected applications summarized from https://forums.whonix.org/t/cannot-use-pkexec/8129
already:
- gdebi -> use sysmaint
- synaptic -> use sysmaint
- partition manager -> use sysmaint
- xfce auto mounter -> TODO
- Only sysmaint should be able to use pkexec?
- List of affected applications summarized from https://forums.whonix.org/t/cannot-use-pkexec/8129
Kicksecure
A secure by default operating system with the latest security research in place.
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev/sudo
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev/sudo|sudo / doas / sudoless / privleap]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[sudo / doas / sudoless / privleap](https://www.kicksecure.com/wiki/Dev/sudo)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[sudo / doas / sudoless / privleap](https://www.kicksecure.com/wiki/Dev/sudo)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev/sudo]sudo / doas / sudoless / privleap[/url]
Copy as phpBB Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.


Copy as Wikitext

for Discourse, reddit, GitHub

Copy as Markdown

Copy as phpBB Click below ↴ = Open social URL with share data









Supported by Power Up Privacy
Kicksecure is proudly supported until 2025 by
Power Up Privacy,
a privacy advocacy group that seeks to supercharge privacy projects with resources so they can complete their mission of making our world a better place.
(Strictly subject to our sponsorship policy.)
By using this website, you acknowledge you have read, understood, and agree to be bound by these agreements:
Terms of Service,
Privacy Policy,
Cookie Policy,
E-Sign Consent,
DMCA,
Imprint
2012-
2025 ENCRYPTED SUPPORT LLC


We believe security software like Kicksecure needs to remain Open Source and independent. Would you help sustain and grow the project? Learn more about our 12 year success story and maybe DONATE!
Retrieved from "https://www.kicksecure.com/w/index.php?title=Dev/sudo&oldid=93024"