Skip to content

Instantly share code, notes, and snippets.

@elhoyos
Created December 19, 2016 16:38
Show Gist options
  • Save elhoyos/9a33626f8c1ddeb8b2a5bef0170560cf to your computer and use it in GitHub Desktop.
Save elhoyos/9a33626f8c1ddeb8b2a5bef0170560cf to your computer and use it in GitHub Desktop.
cronjob tips

If you get these in your syslog:

Dec 19 05:07:01 ip-10-0-2-194 cron[9036]: (*system*aws-crawnchers) WRONG FILE OWNER (/etc/cron.d/some-cronjob)
Dec 19 05:08:01 ip-10-0-2-194 cron[9036]: (*system*web-server) INSECURE MODE (group/other writable) (/etc/cron.d/some-cronjob)

You need to:

$ chown root:root /etc/cron.d/some-cronjob
$ chmod 644 /etc/cron.d/some-cronjob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment