So i would like to disable cron from users and make them have to send the cron to us.

WebHostPro

Well-Known Member
PartnerNOC
Jul 28, 2002
1,727
28
328
LA, Costa RIca
cPanel Access Level
Root Administrator
Twitter
Too many bad crons are happening with word press type scripts everywhere.

Any ideas how to remove all the cpanel based user cron jobs and how to disable users from being able to add them. And a way for us to still add them manually as the server admin?

I know it will be allot of work but it's better then our server getting wrecked. :)
 

jsnape

Well-Known Member
Mar 11, 2002
174
0
316
Too many bad crons are happening with word press type scripts everywhere.

Any ideas how to remove all the cpanel based user cron jobs and how to disable users from being able to add them. And a way for us to still add them manually as the server admin?

I know it will be allot of work but it's better then our server getting wrecked. :)
Its not hard, just put the word ALL in /etc/cron.deny and create a file called cron.allow and put users you want to be allowed to run cron jobs. Or just create a cron.allow file and all others will automatically be denied.

Then maybe remove or edit the cpanel theme page for cron jobs telling people it wont work until they contact you to have cron activated.
 
Last edited:

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
Too many bad crons are happening with word press type scripts everywhere.

Any ideas how to remove all the cpanel based user cron jobs and how to disable users from being able to add them. And a way for us to still add them manually as the server admin?

I know it will be allot of work but it's better then our server getting wrecked. :)

In whm > packages > feature manager, edit the "disabled" features set and uncheck
"cron tab"

That will be removed from everyones cpanel. While you are in there, you may want
to do the same for their ssh.