System administration

gasroot – run a process as the root user

gasroot is a privilege-elevation utility that allows authorised users to execute a command as root after authenticating through a graphical password prompt.

It provides a graphical authentication interface for a workflow that would otherwise be handled by a command-line privilege-management utility. This can be useful when launching administrative commands from desktop applications, scripts or graphical environments.

gasroot is closely related to asroot, another utility developed by Mattias Andrée. Both applications follow a relatively simple approach to privilege elevation rather than implementing the extensive configuration facilities associated with sudo.

The command to execute is supplied together with its arguments. gasroot requests the invoking user’s password through its graphical interface and starts the command with root privileges once authentication and authorisation succeed.

Access is normally restricted to members of the wheel group. This limits privileged execution to users who have been explicitly designated as administrators through the system’s group configuration.

The application also manages the environment inherited by the privileged process. By default, environment variables are sanitised and updated before the command is executed.

An alternative execution mode allows the original environment to be retained when necessary. This should be used with care because privileged applications can be affected by inherited environment settings.

gasroot concentrates on graphical authentication and command execution rather than providing a general administrative desktop or policy editor.

This is free and open source software.

Key Features

  • Execute specified commands with root privileges.
  • Request authentication through a graphical password interface.
  • Restrict privileged command execution to wheel-group members.
  • Accept executable names and command-line arguments.
  • Sanitise inherited process environment variables.
  • Update environment settings for privileged execution.
  • Provide the -e option to preserve the invoking user’s environment.
  • Support integration with graphical administrative workflows.
  • Offer a graphical counterpart to the asroot utility.
  • Provide a focused privilege-elevation interface without a complex policy language.

Website: codeberg.org/maandree/gasroot
Support:
Developer: Mattias Andrée
License: ISC License

gasroot man page

gasroot GUI

gasroot is written in C. Learn C with our recommended free books and free tutorials.

Alternatives to sudo


Explore Linux

Best Free and Open Source Software - A huge collection of recommended free and open source software covering every major category.
In-depth Linux Software Reviews - Detailed assessments of Linux software covering features, usability and overall quality.

The Big List of Active Linux Distros - An extensive collection of actively developed Linux distributions.
Open Source Alternatives - Alternatives to software and services from Google, Microsoft, Apple, Adobe, IBM, Autodesk, Oracle and others.
Essential Linux System Tools - Indispensable utilities for monitoring, maintaining and managing Linux systems.
Linux Productivity Tools - Useful utilities for improving productivity and streamlining everyday tasks.
Alternatives to Popular CLI Tools - Modern alternatives to familiar command-line utilities supplied with Linux systems.
Awesome Free Linux Game Tools - Tools, utilities and companion software that improve gaming on Linux.
Machine Learning on Linux - Machine learning and deep learning software, self-hosted applications and practical tools.
Saving Money with Linux - Practical ways to reduce electricity consumption and lower computing costs with Linux.
Linux Candy - Fun, entertaining and sometimes delightfully quirky software from the lighter side of Linux.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted