How can I make root commands run without needing root?

This page summarizes the projects mentioned and recommended in the original post on /r/Gentoo

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Netdata

    The open-source observability platform everyone needs

    For a (rather complex) real world example of this, possibly see how Netdata’s installer script handles privilege elevation (the code you want to search for is ${ROOTCMD}, not sudo, as it’s designed to support any of sudo, doas, or pkexec). Each individual case where root permissions are needed involves an appropriate invocation of the privilege elevation command, which reduces to a no-op if the script happens to be run as root.

  • rofi-power-menu

    Configurable power menu mode for Rofi and dmenu

    I'm using rofi-power-menu for this, but I needed to edit the script, as it only works with systemd by default.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts