How can I make root commands run without needing root?

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

Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • - Download’s Tech Salary Report
  • Scout APM - Truly a developer’s best friend
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Netdata

    Real-time performance monitoring, done right!

    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.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

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