Link to home
Start Free TrialLog in
Avatar of stanleyhuen
stanleyhuen

asked on

how to disable crontab?

I don't want to allow users to use crontab in linux server.
what can i do?
Avatar of dorward
dorward

The easiest way is to uninstall it!

How you do this depends on which distro you use.
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

    Another way not very elegant but ...   If you don' run the crond daemon, nothing will happen.

Hope this help.

Bye

or you could move /usr/bin/crontab to crontab.old

Regards Mike

www.unixonline.co.uk
The problem with removing crond or otherwise inactivating it is that you break other things, like log file rolling and other cleanup activities. The preferred solution is simply to restrict access. That's why there are cron.allow and cron.deny files.