Chriz1977

Well-Known Member
Sep 18, 2006
191
0
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
 

Chriz1977

Well-Known Member
Sep 18, 2006
191
0
166
I was more after the ability to restrict the recurance. EG can run monthly but not daily
 

Spiral

BANNED
Jun 24, 2005
2,018
8
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