I've edited my root cron tab to periodically execute a script located in a particular user's folder using this command:
sudo crontab -e
When cron runs the script, this is the output:
sh: 1: /home/user/Location/Of/Script: Permission denied
I thought that the root cron had permission to do anything. I have no issue when I manually run this script as root.
I've read in the documentation that further error info can be found here:
sudo cat /var/log/syslog
Here's what I found:
Jan 30 12:30:01 backup CRON: (CRON) info (No MTA installed, discarding output)
However, I think this is probably unrelated to the permission denied issue.
So what do I really need to do?