Setting up Cronjob

Hi,

I had to setup some cron jobs using crontab -e when logged in as root.
I noticed that the jobs only run when the permissons on the shell script file are set to execute on root and other. Why does "other" have to have its execution permission set?

Not enough information. What OS are you using, what version of the cron daemon, what shows up in the cron log when a command fails, and so on...

What are the permissions of the directory containing the script?

drwxr-xr-x 2 root root 4096 Sep 4 10:51 bin

---------- Post updated at 11:23 AM ---------- Previous update was at 11:15 AM ----------

Fedora Core 4
ISC Cron V4.1)

Cron log shows that script ran:

Sep 2 13:10:02 tesla crond[10172]: (root) CMD (/root/bin/inform_of_error.sh)

After re-reading this sentence I didn't understand it. Permissions would be individually set for owner, group and other.
Ownership would be owner and group.
Can you post the permissions of the file when it works and when it doesn't work.

See above. It is posted in this thread.

Sounds like your root umask is 002 which would leave you with a 705 rwx---r-x permissions by default on any files you edit as root. To set it for root files to be only rwx------ then set your umask to 077.

What is umask and how to setup default umask under Linux?