修改 /etc/sudoers 添加 user
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
user ALL=(ALL) NOPASSWD: ALL <--------------- 添加这一行
修改 /etc/sudoers 添加 user
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
user ALL=(ALL) NOPASSWD: ALL <--------------- 添加这一行