📜  linux shutdown no password - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:33.092000             🧑  作者: Mango

代码示例1
Cmnd_Alias SHUTDOWN_CMDS = /sbin/poweroff, /sbin/halt, /sbin/reboot
bob ALL=(ALL) NOPASSWD: SHUTDOWN_CMDS