$ sudo visudo
tom ALL=(ALL) NOPASSWD:ALL
marlena ALL = NOPASSWD: /bin/systemctl restart nginx.service
https://www.cyberciti.biz/faq/linux-unix-running-sudo-command-without-a-password/
[linux] How to run sudo command without a password on a Linux or Unix
分類:linux