The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to disable the cron to users?

Discussion in 'General Discussion' started by konrath, Sep 9, 2009.

  1. konrath

    konrath Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    367
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    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.
     
Loading...

Share This Page