> > I have browsed the mailing list on any cron issues, but could not find an
> > answer to the problem I am currently experiencing.
> >
> > So here goes.
> >
> > I just got my own server that had Linux pre-installed on there. My cron
> > problem are
> >
> > 1. jobs that I created as root in /var/spool/cron is not getting
executed.
> > 2. How do I give crontab access to other users on the server ?
> >
> > Issue 1: Cron not working
> > ===========================
> >
>I wouldn't really modify the file itself I would crontab -e.
>I have bad experience from other systems modifying the file itself
>the jobs never run unless you restart the daemon.
>
> Generally root crons are run from /etc/crontab, /etc/cron.
>{d|daily|hourly|monthly}. Try creating your sample cronjob >in /etc/crontab
and see if that works.
*** I actually found my problem. I had to specify the cron like this
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /bin/touch /tmp/i-was-here
intead of
0,5,10,15,20,25,30,35,40,45,50,55 * * * * touch /tmp/i-was-here
This part is working ok now.
> > Issue 2: Giving others access to cron
> > =======================================
> >
> > At present on this server, only root and user admin can run crontab.
> >
> > What do I have to do to give other user account that I create access to
> > crontab when they connect via SSH ?
>
> I've heard of crontab.deny and crontab.allow to specify user restrictions
> but what error message do you get when you attempt to run crontab -e as
> another user?
>
> Anand
*** My problem here is that when I create user accounts on this web server,
they cannot run "crontab -e" . I get the error message
"bash: crontab: command not found"
There is no cron.allow, and cron.deny on this server in /etc/ . So anyone on
this server can run cron. Right ??
At the moment I tried something different that works instead of
crontab -e, but I want them to be able to run "crontab -e" command.
Louis.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug