📜  sudo 无密码 - Shell-Bash 代码示例

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

代码示例2
# Edit the sudoers with the visudo command
sudo visudo

# Change the %sudo group to be password-less
%sudo   ALL=(ALL:ALL) NOPASSWD: ALL

# Press CTRL+X to exit
# Press Y to save
# Press Enter to confirm