How to disable the cron to users?

konrath

Well-Known Member
May 3, 2005
366
0
166
Brasil
Hello

How to disable the cron only to users

I want keep enable icon in the cpanel but disable the cron to users.

Thank you
Konrath
 

thewebhosting

Well-Known Member
May 9, 2008
1,199
1
68
If you have an SSH acces to the server then you can disalbe the cron for the user:

To disable the cron for all the users of your server then you just need to put the word All in etc/cron.deny.

If you would like to disable the cron for the particular user, then you will need to create a file called cron.allow and put the username you want to be allowed to run cron jobs.

Alternative to this, you can just create cron.allow file and all the other users will automatically get denied to run the cron jobs.