Set cron jobs as root user

Login as root via SSH or login as a user (or admin) in SSH and su to root.
Then you can via:
Code:
crontab -e

You can also login to SSH as a user and then:
Code:
sudo crontab -e
you do need the root password.

You can also use /etc/crontab or cron.daily or one of the others, depending on what you want.
You need crontabs to be installed, on Centos:
Code:
yum install crontabs
if not present yet.
 
Back
Top