Running cron under sudo

Derek Broughton news at pointerstop.ca
Tue Oct 7 16:56:38 UTC 2008


Brian McKee wrote:

>>> 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.

No, he's right.  The "proper" way to get a root user shell is "sudo -i".

> Then crontab -e will work as expected.

Not according to man crontab(1).
-- 
derek





More information about the ubuntu-users mailing list