[Feature complete] A simpler alternative to sudo and doas
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Mattias Andrée 1aa83640c9 Add reference to editasroot
Signed-off-by: Mattias Andrée <maandree@kth.se>
11 months ago
.gitignore First commit 2 years ago
LICENSE First commit 2 years ago
Makefile Improve makefile 2 years ago
README Add reference to editasroot 11 months ago
arg.h First commit 2 years ago
asroot.8 Add reference to editasroot 11 months ago
asroot.c Fix a buf and a portability issue found by Jonathan Frech 2 years ago
config.mk Improve makefile 2 years ago

README

NAME
	asroot - run a process as the root user

SYNOPSIS
	asroot [-e] command [argument] ...

DESCRIPTION
	The asroot utility asks for the user's password and runs the specified
	command with sanitised and updated environment variables.

	Only users in the wheel group are allowed to run the asroot utility,
	unless it is installed with non-standard permissions.

OPTIONS
	The asroot utility conforms to the Base Definitions volume of
	POSIX.1-2017, Section 12.2, Utility Syntax Guidelines.

	The following option is supported:

	-e	Keep the environment variables as is. Neither sanitise nor
		update them.

OPERANDS
	The following operands are supported:

	command
		The command that shall be run with as the root user. This will
		be both the process image and the process's zeroth command line
		argument.

	argument ...
		Command line arguments for the command to run.

SEE ALSO
	editasroot(8), sudo(8), doas(1), su(1)