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.

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

Discussion in 'General Discussion' started by DWHS.net, Dec 8, 2006.

  1. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    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. :)
     
  2. jsnape

    jsnape Well-Known Member

    Joined:
    Mar 11, 2002
    Messages:
    174
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
    #2 jsnape, Dec 8, 2006
    Last edited: Dec 8, 2006
  3. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36

    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.
     
  4. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    perfect, thanks very much :D
     
Loading...

Share This Page