Linux 上 sudo 免密

sudo visudo

或者

sudo vim /etc/sudoers

找到

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

加个 NOPASSWD: 就好了;

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) NOPASSWD: ALL
声明:本站所有文章,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。-- mikigo