$[~]$ poweroff
Failed to power off system via logind: Interactive authentication required.
I've researched about this & came to know that sudo & polkit were requesting authentication from user. With polkit, it's little challenging to allow a user to do systemctl level operations. But with sudo, it was as easy as echo "youname ALL = NOPASSWD: /bin/systemctl" >> /etc/sudoers.d/sysctl.
How to do this on opendoas ?
I've researched about this & came to know that sudo & polkit were requesting authentication from user. With polkit, it's little challenging to allow a user to do systemctl level operations. But with sudo, it was as easy as echo
"youname ALL = NOPASSWD: /bin/systemctl" >> /etc/sudoers.d/sysctl
. How to do this on opendoas ?