add power commands for sudoers file

This commit is contained in:
Jakub 2024-07-24 22:29:30 -04:00
parent 17df1ba39f
commit 525a235ea8

View File

@ -0,0 +1,8 @@
# allow wheel users to run power commands with no passwd
%wheel ALL=(ALL:ALL) NOPASSWD: /bin/systemctl suspend
%wheel ALL=(ALL:ALL) NOPASSWD: /bin/systemctl hibernate
%wheel ALL=(ALL:ALL) NOPASSWD: /bin/systemctl hybrid-sleep
%wheel ALL=(ALL:ALL) NOPASSWD: /bin/systemctl poweroff
%wheel ALL=(ALL:ALL) NOPASSWD: /bin/systemctl reboot
%wheel ALL=(ALL:ALL) NOPASSWD: /bin/shutdown
%wheel ALL=(ALL:ALL) NOPASSWD: /bin/reboot