visudo命令用于編輯/etc/sudoers文件 在root ALL=(ALL) ALL這行下面增加如圖所示 Allow root to run any commands anywhere root ALL=(ALL) ALL dataagg ALL=(ALL) ALL NOPASSWD:ALL為不需要密碼