diff --git a/root/etc/sudoers.d/power-commands b/root/etc/sudoers.d/power-commands new file mode 100644 index 0000000..8474b40 --- /dev/null +++ b/root/etc/sudoers.d/power-commands @@ -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