Code:
$ doas /usr/sbin/syspatch
doas: Operation not permitted
It looks like a password error.
doas(1) asks for myusername's password, not root's password.
Edit : also, you can add
nopass to the
doas.conf file, but it will lacks security.
Now I assume it'll be ok with syspatch...
Code:
permit nopass myusername as root cmd /usr/sbin/syspatch