Running cron under sudo
Brian McKee
brian.mckee at gmail.com
Tue Oct 7 16:29:20 UTC 2008
>> Try sudo su - and then crontab -e
> Thank you for taking the time to reply. I'm assuming you meant "sudo
> -i" as your first suggestion.
Nope
sudo su -
will log you in as root after you provide YOUR password.
Then crontab -e will work as expected.
The files end up in /var/spool/cron/crontabs incidentally.
You might want to consider using /etc/crontab rather than 'root's own crontab
Brian
More information about the ubuntu-users
mailing list