doas
Table of Contents
1. Configuration
Permit user alan to run any commands as root, prompt for the user
password for each command, the persist option only works on OpenBSD
and is either not available or enabled by default on FreeBSD and Linux
(see references).
permit alan as root
Permit user alan to run apt update as root without prompting for the user password.
permit nopass alan as root cmd apt args update
Permit users in group wheel to run service sshd restart without prompting for their password.
permit nopass :wheel as root cmd service args sshd restart
Check for syntax errors.
doas -C /etc/doas.conf