[英]permission denied when using `sudo grep syslog` inside perl script (cgi-bin)
i have perl script inside my cgi-bin folder, what i want is grep syslog using sudo grep (because it is root), but i got this message 我在我的cgi-bin文件夹中有perl脚本,我想要的是使用sudo grep的grep syslog(因为它是root),但是我收到了这条消息
We trust you have received the usual lecture from the local System Administrator. 我们相信您已收到本地系统管理员的通常讲座。 It usually boils down to these three things:
它通常归结为这三件事:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
so, any solution to solve this problem ?? 那么,解决这个问题的任何解决方案??
您应该使用NOPASSWD将apache / nginx用户添加到sudoers以便工作(不是很值得推荐)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.