sudo权限和免密设置

ubuntu

sudo EDITOR=vim visudo
x99 ALL=(ALL) NOPASSWD: /usr/bin/tar, /usr/bin/docker, /home/x99/backupGhost.sh