Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
I configure doas as instructed in the Debian wiki, then I try to update mirrors using "doas apt update", command runs as expected, but when I try to run commands like "doas reboot" or "doas poweroff" or "doas fdisk -l", it shows the output "doas: fdisk: command not found", so I thought it was a path issue, so I tried "doas /sbin/fdisk -l", command worked.
I try to find solutions in debian wiki and online. I also try to configure doas.conf with setenv way found in the Arch Wiki, but whatever I try, doas gives me the same behavior as explained above. It seems doas is not able to find the command from path /sbin or /usr/sbin as I understand.
Tried all these configurations with doas, but still gave me the same issue.
1. First I try to configure doas as shown in debian wiki in /etc/doas.conf
permit yyt as root
2. Second, I try to configure doas as shown in /usr/share/doc/opendoas/examples/doas.conf
permit :sudo
3. Third, I use setenv options as shown in Arch Wiki to set the path, still giving me the same issue.
permit setenv {PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin} :sudo
if any other informations is needed, then let me know
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these template lines ***