Running cron under sudo
Ruben Laban
r.laban at ism.nl
Tue Oct 7 16:13:41 UTC 2008
On Tuesday 07 October 2008 at 17:38 (CET), Homer wrote:
> Ubuntu Server 8.04
>
> I can get cron to work as a regular user, but not sudo. For example:
>
> 23 8 * * * cp /root/test /root/test1
>
> will not run under sudo, but a similar cron will run as a regular user.
>
> 23 8 * * * cp /home/user/test /home/user/test1
>
> I'm entering sudo's cron with "sudo crontab -e"
I generally just place my cronjobs within a file of their own in one of
the /etc/cron.* folders (or if you really want, on single line
in /etc/crontab).
--
Regards,
Ruben
More information about the ubuntu-users
mailing list