0

I'm trying to execute a command using the following command:

/usr/local/bin/php xxx.php | at now + 10 minutes

However, terminal throws this error:

cannot set egid: Operation not permitted error

I tried adding the user to /etc/at.allow but that doesn't help. I also removed /etc/at.deny, but that also didn't help. Any ideas what is up? How can I give permission to the user to utilize the at command?

4

1 回答 1

3

权限/usr/bin/at不对,需要setuidroot:

sudo chmod u+s /usr/bin/at
于 2015-07-10T00:52:54.713 回答