What is the file location of the cron job file
I was setting up this
But i cant edit it via command line as i have ssh disabled and csf explorer wont let me edit the file via command line.
So i need to know where the cron file is located so i can edit it directly.
Thanks :)
-
I was facing the same issue for terabox video downloader.
If you're using cPanel, user-level cron jobs are usually stored in:
/var/spool/cron/username
Or, you can check and edit them from the cPanel interface under "Cron Jobs" (much easier if SSH is disabled). For system-wide cron jobs, they’re typically found in:
/etc/crontab /etc/cron.d/ /etc/cron.daily/ /etc/cron.weekly/
Since you're working with
tmpwatch
, that’s often added to a script in/etc/cron.daily/
or similar. If you can access File Manager via cPanel or use CSF Explorer’s file tools, try navigating to those directories directly.Hope that helps! 👍
2 -
Thank you James, really appreciate it :)
Yep its /var/spool/cron/root is the file. Those instructions say to add it to the root cron but does not give the location for some reason. Maybe they need to add that. :)
The person that wrote that article has not been active in a while, i dont have any idea how to ask cpanel to add that filename (/var/spool/cron/root) to step 5 process after (Add tmpwatch to root's crontab) but maybe one of the mods will see this and send it forward or let me know the process to request update to that article. :)
0 -
Only root can edit any of the cron files.
0
Please sign in to leave a comment.
Comments
3 comments