[Linux] disabling cron

Larry Kagan linux@flux.org
Thu, 10 May 2007 22:21:49 -0400


This is a multi-part message in MIME format.
--------------060300020402060802040600
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

This should not be this difficult.  I'm simply trying to disable the use 
of cron for a user.  I tried /etc/cron.deny, /usr/lib/cron/cron.deny but 
none work.  Finally I just chown root:root 
/var/spool/cron/crontabs/<user> && chmod 000 
/var/spool/cron/crontabs/<user>  But that seems ugly to me.

Anyone have any insight?

Thanks,

Larry

--------------060300020402060802040600
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">This should
not be this difficult.&nbsp; I'm simply trying to disable the use of cron
for a user.&nbsp; I tried /etc/cron.deny, /usr/lib/cron/cron.deny but none
work.&nbsp; Finally I just chown root:root
/var/spool/cron/crontabs/&lt;user&gt; &amp;&amp; chmod 000
/var/spool/cron/crontabs/&lt;user&gt;&nbsp; But that seems ugly to me.<br>
<br>
Anyone have any insight?<br>
<br>
Thanks,<br>
<br>
Larry<br>
</font></font>
</body>
</html>

--------------060300020402060802040600--