?
Solved

how to disable crontab?

Posted on 2001-08-05
5
Medium Priority
?
2,974 Views
Last Modified: 2009-02-06
I don't want to allow users to use crontab in linux server.
what can i do?
0
Comment
Question by:stanleyhuen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 17

Expert Comment

by:dorward
ID: 6353736
The easiest way is to uninstall it!

How you do this depends on which distro you use.
0
 
LVL 40

Accepted Solution

by:
jlevie earned 80 total points
ID: 6354171
Easy, only list the users that should be able to have crontabs in /etc/cron.allow. If that file exists and has one or more names in it any users not listed in the file will not be allowed to create crontab files. For more information see "man crontab".
0
 
LVL 2

Expert Comment

by:olidel
ID: 6355931
Hi,

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

Hope this help.

Bye

0
 
LVL 3

Expert Comment

by:mrn060900
ID: 6356037
or you could move /usr/bin/crontab to crontab.old

Regards Mike

www.unixonline.co.uk
0
 
LVL 40

Expert Comment

by:jlevie
ID: 6356379
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.
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month14 days, 2 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question