I installed Doas as a replacement for sudo on my Gentoo machine. I followed the documentation here and my /etc/doas.conf looks like this:
/etc/doas.conf
permit persist :wheel
I have also restarted the system. However, it still asks me for the password every time I use doas. What am I doing wrong?
doas
Make below changes in the doas configuration.
permit nopass ::wheel
or allow user and dont require a password to execute commands as root
permit nopass keepenv :username2
Reference URL
https://forums.freebsd.org/threads/doas-tips-sudo-alternative.69409/
1.4m articles
1.4m replys
5 comments
57.0k users