Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cron Jobs

Discussion in 'General Discussion' started by Chriz1977, Jun 12, 2007.

  1. Chriz1977

    Chriz1977 Well-Known Member

    Joined:
    Sep 18, 2006
    Messages:
    191
    Likes Received:
    0
    Trophy Points:
    166
    Hi

    Is there any way to prevent users from setting up cron jobs? IE prevent them setting up crons that run every minute, hour, etc.

    Cheers
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. flash7

    flash7 Well-Known Member

    Joined:
    Feb 16, 2004
    Messages:
    201
    Likes Received:
    0
    Trophy Points:
    166
    WHM > Packages > Feature Manager > Edit a Feature List > disabled
     
  3. Chriz1977

    Chriz1977 Well-Known Member

    Joined:
    Sep 18, 2006
    Messages:
    191
    Likes Received:
    0
    Trophy Points:
    166
    I was more after the ability to restrict the recurance. EG can run monthly but not daily
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    8
    Trophy Points:
    193
    You couldn't impose that kind of limitation within Cpanel itself.

    HOWEVER ...

    You could possibly write a script to check the crontab files in
    /var/spool/cron at regular intervals on it's own cronjob and
    auto modify those cron files that don't meet your limits.

    That should be an easy enough script to write and that
    is exactly how I would go about doing it.

    I have a similar measure in place on a few systems using
    the same technique to override forwarders to AOL accounts
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice