at command in ubuntu error 'You do not have permission to use at'

by fredjo   Last Updated July 12, 2019 10:02 AM - source

Apologize in advance, I am pretty new at php and ubuntu. I have 2 servers set up, one for development and one for staging. On the dev machine I can use the at command without a problem, but on staging I get a permissions error. The at.deny (and at.allow) files are identical, so it must be another permissions issue. Any clues? Thank you for your help. I see that on the staging server I can only use the at command as root. How can I fix this to be able to use the at command as www-data? Again... I checked the at.allow and at.deny files.. they are not the problem here. So what is?

Answers 1

I stumbled on this today. This answer implicitly suggested chmod a+r /etc/at.allow, which helped. I am not sure whether this is the best/"official" way, but (a) it works for me, and (b) I don't see a lot of security risk in exposing the ids of users allowed to use at (at least in my use-case).

July 12, 2019 09:46 AM

Related Questions

Is executable permission mode S used for anything?

Updated October 04, 2017 05:02 AM

How to run cd as superuser

Updated December 22, 2018 09:02 AM