Running cron under sudo

Homer fsunoles at gmail.com
Tue Oct 7 15:38:11 UTC 2008


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"




More information about the ubuntu-users mailing list