running amazon ami (similar to centos.)
this is what I found on cron file under /var/log :
Sep 4 15:32:01 mike crond: (root) BAD FILE MODE (/etc/cron.d/mytasks)
and this is my file mytasks its under the folder cron.d
SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=mygmailemail HOME=/ #hourly query for social share data 1 1-23 * * * wget -q http://localhost/sharecounter.php?period=hourly -O /dev/null 2 >&1 > /dev/null #daily query for social share data 1 0 * * 1-6 wget -q http://localhost/sharecounter.php?period=daily -O /dev/null 2>&1 > /dev/null
any ideas on what is wrong ?
As the message told you, the permissions of the file are wrong. You have probably made it group or world writable; if this is the case, it is a security risk and crond will refuse to run it.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.