Is it not possible to create cronjobs as an admin user from Cyberpanel? Creating it from domain area may not always be an option where root privileges are required.
You can SSH to server and use command and add cronjob there
crontab -e
There are two ways to create one is
crontab -e
Other one is just open your /var/spool/cron/root and then edit that file.
The file on Ubuntu seems to be:
/var/spool/cron/root/crontabs
Please correct me if I am wrong.
Hello @tyrannosaurhex
To add, edit or change cronjobs for root user do this:
## nano for debian, vi for RHEL
$ nano /var/spool/cron/crontabs/root || vi /var/spool/cron/crontabs/root
However end users are not supposed to edit this file directly. Users should use crontab -e
which sets up a temporary mirror of the file in /tmp
without the DO NOT EDIT THIS FILE
warning but hell edit it anyway. it does not hurt anyone
1 Like
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.