Solved

how to disable crontab?

Posted on 2001-08-05
5
2,972 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 20 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

737 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