add power commands for sudoers file
This commit is contained in:
parent
17df1ba39f
commit
525a235ea8
8
root/etc/sudoers.d/power-commands
Normal file
8
root/etc/sudoers.d/power-commands
Normal 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
|
Loading…
Reference in New Issue
Block a user