Prevent setting cron when there's too many user using the same setting?

kabatak

Well-Known Member
Jun 10, 2009
140
6
68
Apparently, I've a lot of users using exactly the same cron setting and this is causing high server load. Can we prevent users from using the same cron setting when there's too many users already using it?

For example, if there's x numbers of users that use the following cron schedule: 0 1 * * *, is it possible to prevent future users in using the same cron setting?
 

arunsv84

Well-Known Member
Oct 20, 2008
373
1
68
127.0.0.1
cPanel Access Level
Root Administrator
I think the only way is to deny the user from creating cron jobs. You may use the file /etc/cron.deny . Or the user specific crons are available at /var/spool/cron/username

Cheers!!!