Toby Slight wrote:
> Hi there,
>
> I just started getting to know doas a bit, and am already stumped (pretty
> typical for me..).
>
> I'm trying to let my user shutdown, reboot and suspend the computer without
> entering a password. This is my doas.conf:
>
> permit keepenv { ENV PS1 SSH_AUTH_SOCK } :wheel
> permit nopass toby as root cmd /sbin/shutdown
> permit nopass toby as root cmd /sbin/reboot
> permit nopass toby as root cmd /usr/sbin/zzz
>
> I can suspend successfully, but attempting to shutdown or reboot, returns:
>
> ksh: shutdown: cannot execute - Permission denied
you have to run the doas command. it's not part of the shell.
doas /sbin/shutdown