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.

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:
    16
    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
     
  2. flash7

    flash7 Well-Known Member

    Joined:
    Feb 16, 2004
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    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:
    16
    I was more after the ability to restrict the recurance. EG can run monthly but not daily
     
  4. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    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