On 11/17/2016 04:31 PM, Randall Wood wrote:
Is there any reason you can't specify the user instead of root in
the cron file?
Well, I can, but:
[quote]
Packages with cron job files must place those cron job files into one or
more of the following directories /etc/cron.hourly, /etc/cron.daily,
/etc/cron.weekly, /etc/cron.monthly depending on the intended interval
they should run.
There is an exception to this rule: If a certain cron job has to be
executed at some frequency or at a specific time interval other than the
above, then a custom crontab file should be added to /etc/cron.d (with
0640 permissions).
[/quote]
Running it as a different user is not specified as a reason to use
cron.d :-)
Cheers,
François