CyberPanel Community

ClosedCronjobs as root/admin

ty
tyrannosaurhex #1

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.

4 replies
Dr
Dreamer #2

You can SSH to server and use command and add cronjob there

crontab -e

sh
shoaibkk #3

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.

ty
tyrannosaurhex #4

The file on Ubuntu seems to be:

/var/spool/cron/root/crontabs

Please correct me if I am wrong.

jo
josephgodwinke #5

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

Sign in to reply