Re: Problem with cron.allow



Hello,

cron.deny does not exist.
i have found the problem, but i m not sure to understand all the subtleties.

I have set the file permissions on 600 for /etc/cron.allow.
So when a user call the command crontab, the file /etc/cron.allow could not
be read.
By changing to 644, the file /etc/cron.allow works.

But i don't understand how the daemon cron works :
I have 3 questions (sorry )

1) It seems to run under root

ps aux | grep cron
root 13262 0.0 0.0 1764 820 ? Ss Jun04 0:00
/usr/sbin/cron

So why can't it read the /etc/cron.allow with file permission 600.

2) Is there a way to modify the default ebian behavior with cron.
I can understand that if /etc/cron.allow or /etc/cron.deny doesn't exist,
evevybody can use the crontab!
I prefer the policy : if they don't exist, only root can use crontab.
Can we change that ?

3/ What is the group crontab ?

thnaks a lot
fabrice




"Patrick" <ptri.c.k.@xxxxxxxxxxxxx> a écrit dans le message de news:
5ciuubF30nse3U1@xxxxxxxxxxxxxxxxxxxxx
In news:f416pb$emv$1@xxxxxxxxxxxxxxxxxx,
fabrice <emouchet@xxxxxxxx> wrote:

I would like to restrict acces to the crontab sytem only for root.
I m working with a debian sarge.
So i have created the /etc/cron.allow file with root inside.
But it seems not to work, because each user can still create cron
table.

have i missed something ?

Does cron.deny exist? If so, remove it. Did you restart the cron daemon?


.



Relevant Pages

  • [Fwd: OpenBase SQL multiple vulnerabilities Part Deux]
    ... # Writing to roots crontab seems to be fairly prompt at handing out root shells ... This ensures that cron is running when the fake root crontab is created. ... the OpenBase family of products have been enabling some of the most innovative business applications ...
    (Bugtraq)
  • Re: Cron job question
    ... > From: root@somedomain.nl (Cron Daemon) ... You've made the classic mistake of confusing the system crontab ... extra column defining which user ID the command should be run as. ... any new cron jobs for any user (including root) and leave the system ...
    (freebsd-questions)
  • Re: error email from Cron
    ... >>Well, I've found the problem, but still don't know how to fix it. ... > No, you run cron, not crontab. ... and once as root. ... >>Below is an excerpt from the cron log. ...
    (linux.redhat.misc)
  • Crontab Mystery
    ... Cron's main config file, /etc/crontab, is owned by root and the cron ... log says 'root' is running this crontab. ...
    (RedHat)
  • Re: cron not running job
    ... > I'm having problems getting my freshly update FreeBSD 5.3 system to ... > run my cron jobs. ... > crontab with the following command ... > I can run the script as root with no errors. ...
    (freebsd-questions)