|DOAS(1)||General Commands Manual||DOAS(1)|
doas — execute
commands as another user
doas utility executes the given
command as another user. The command argument is
The options are as follows:
-a(authentication style) option causes
doasto use the specified authentication style when validating the user, as allowed by /etc/login.conf. The system administrator may specify a list of doas-specific authentication methods by adding an ‘auth-doas’ entry in /etc/login.conf.
doaswill also perform command matching. In the latter case either ‘permit’, ‘permit nopass’ or ‘deny’ will be printed on standard output, depending on command matching results. In either case, no command is executed.
doaswould prompt for password.
doas utility exits 0 on
success, and >0 if an error occurs. It may fail for one of the
doas command first appeared in
Ted Unangst <firstname.lastname@example.org>
|December 8, 2015||OpenBSD-5.9|