Tag Archives: linux

Running crontab as root

If you want to run some script as the root user using crontab, make sure you sudo as root before you modify the crontab entries :

$ sudo -i
[sudo] password for xxx :
(enter your password)

$ crontab -e

The sudo -i command will change your current user to root, so crontab -e will automatically use the cron file of the root user.