config/root/etc/sudoers.d/power-commands

9 lines
422 B
Plaintext
Raw Normal View History

2024-07-25 02:29:30 +00:00
# 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