sudo /usr/sbin/shutdown

This commit is contained in:
xiongdian.me 2023-04-28 16:42:01 +08:00
parent 746d326356
commit bbc8d97422

View File

@ -2,3 +2,4 @@
%nasp ALL = (root) NOPASSWD: /usr/sbin/reboot %nasp ALL = (root) NOPASSWD: /usr/sbin/reboot
%nasp ALL = (root) NOPASSWD: /usr/bin/whoami %nasp ALL = (root) NOPASSWD: /usr/bin/whoami
%nasp ALL = (root) NOPASSWD: /usr/bin/nvidia-smi %nasp ALL = (root) NOPASSWD: /usr/bin/nvidia-smi
%nasp ALL = (root) NOPASSWD: /usr/sbin/shutdown