Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2007 21:53:24 +0300
From:      "Halid Faith" <maslak@ihlas.net.tr>
To:        <freebsd-questions@freebsd.org>
Subject:   Why crontab is not able to run some commands ?
Message-ID:  <002001c793fd$a789bfa0$dc96eed5@ihlasnetym>

next in thread | raw e-mail | index | archive | help

I have a script. As I am a root user,  I can run it without a problem. I
added that script to crontab in order to run as automatic.
I entered in /etc/crontab and put down as below;
*/20     *       *       *       *       root    /etc/scriptfile

Despite root user, the crontab could not run above file. But I can run the
same script in command line interface.
I am sure tha the crontab daemon is running. Also I can see the crontab try
to run that script in /var/log/cron.
/usr/sbin/cron[98727]: (root) CMD (/etc/scriptfile)
When I am a different user, I couldn't run the script and I got "access
denied"
What is the problem ?

Thanks




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002001c793fd$a789bfa0$dc96eed5>