From owner-freebsd-questions@FreeBSD.ORG Fri May 11 19:20:50 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7584616A406 for ; Fri, 11 May 2007 19:20:50 +0000 (UTC) (envelope-from maslak@ihlas.net.tr) Received: from pop3.ihlas.net.tr (smtp.ihlas.net.tr [213.238.128.249]) by mx1.freebsd.org (Postfix) with SMTP id 5E75813C457 for ; Fri, 11 May 2007 19:20:49 +0000 (UTC) (envelope-from maslak@ihlas.net.tr) Received: (qmail 15520 invoked by uid 89); 11 May 2007 18:53:34 -0000 X-Mail-Scanner: Scanned by qSheff-II-2.1 (http://www.enderunix.org/qsheff/) Received: from unknown (HELO ihlasnetym) (213.238.150.220) by 0 with SMTP; 11 May 2007 18:53:34 -0000 Message-ID: <002001c793fd$a789bfa0$dc96eed5@ihlasnetym> From: "Halid Faith" To: Date: Fri, 11 May 2007 21:53:24 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896 Subject: Why crontab is not able to run some commands ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2007 19:20:50 -0000 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