permit nopass $username cmd /usr/sbin/poweroff permit nopass $username cmd /usr/sbin/reboot permit keepenv $username permit persist $username permit persist setenv { XAUTHORITY LANG LC_ALL } $username Changelog : 26/1/2026 - Opendoas seems to consider only the last entry. 2/12/2025 - permit setenv {XAUTHORITY LANG LC_ALL} $username - elevated access for X programs https://wiki.archlinux.org/title/Doas#Smooth_transition_sudo_to_doas https://bbs.archlinux.org/viewtopic.php?pid=2174934#p2174934 28/11/2025 - Currently, nopass is considered skippable as I am yet to not put my user password in whenever I doas poweroff and/or reboot. - In my own research for the solution of nopass, I couldn't exactly find anyone flaunting their doas.conf files (at least for the ones on Linux), save for some redditors whose doas.conf only contained permit :wheel permit nopass $username (or just permit :wheel). https://old.reddit.com/r/voidlinux/coments/aerof5/doasconf_examples