DOAS.CONF(5) - File Formats Manual # DOAS.CONF(5) - File Formats Manual
NAME # doas.conf - doas configuration file
DESCRIPTION # The doas(1) utility executes commands as other users according to the rules in the doas.conf configuration file.
The rules have the following format:
permit|deny [options] identity [as target] [cmd command [args …]]
Rules consist of the following parts:
permit|deny
The action to be taken if this rule matches.
options
...
DOAS(1) - General Commands Manual # DOAS(1) - General Commands Manual
NAME # doas - execute commands as another user
SYNOPSIS # doas [-Lns] [-a style] [-C config] [-u user] command [arg …]
DESCRIPTION # The doas utility executes the given command as another user. The command argument is mandatory unless -C, -L, or -s is specified.
The user will be required to authenticate by entering their password, unless configured otherwise.
...
SU(1) - General Commands Manual # SU(1) - General Commands Manual
NAME # su - substitute user identity
SYNOPSIS # su [-fKLlm] [-a auth-type] [-c login-class] [-s login-shell] [login [shell-argument …]]
DESCRIPTION # The su utility allows a user to run a shell with the user and group ID of another user without having to log out and in as that other user. All of the real, effective, and saved user and group IDs as well as all supplementary group IDs are always set according to the target user.
...