sudoers 文件的这一行有什么问题?
%test ALL=(ALL)NOPASSWD:/usr/bin/supervisorctl status test, /usr/bin/supervisorctl start test, /usr/bin/supervisorctl stop test, /usr/bin/supervisorctl restart test, /usr/bin/supervisorctl status test-dev, /usr/bin/supervisorctl start test-dev, /usr/bin/supervisorctl stop test-dev, /usr/bin/supervisorctl restart test-dev, service nginx restart
无法修复。谢谢。
答案1
解决了。
我忘记了服务之前的 /usr/sbin/ :|