From owner-freebsd-questions@FreeBSD.ORG Wed Jul 2 07:17:01 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF5DA37B401 for ; Wed, 2 Jul 2003 07:17:01 -0700 (PDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FCA443FB1 for ; Wed, 2 Jul 2003 07:17:01 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (be-well.no-ip.com[24.147.188.198]) by comcast.net (sccrmhc13) with ESMTP id <2003070214170001600jva41e>; Wed, 2 Jul 2003 14:17:00 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.9/8.12.9) with ESMTP id h62EGxsi047159; Wed, 2 Jul 2003 10:16:59 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h62EGr4p047156; Wed, 2 Jul 2003 10:16:53 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: freebsd-questions@freebsd.org References: <20030629082956.GA1077@beke.info> <44fzlq8gtc.fsf@be-well.ilk.org> <20030701191222.GA1132@beke.info> From: Lowell Gilbert Date: 02 Jul 2003 10:16:53 -0400 In-Reply-To: <20030701191222.GA1132@beke.info> Message-ID: <44of0dc8tm.fsf@be-well.ilk.org> Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: ico@beke.info Subject: Re: crontab : exec, permission denied X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2003 14:17:02 -0000 ico writes: > >> I added to /etc/crontab this line: > >> > >> */5 * * * * user1 /usr/local/bin/getmail \ > >> -r /usr/home/user1/.getmail/getmailrc > >> > >> > >> I wanted getmail to pick-up mail for user user1. Result is error: > >> exec: :permission denied > >> > >> $ls -l /usr/local/bin/getmail > >> r-xr-xr-x 1 root wheel 328 Jun 22 07:41 /usr/local/bin/getmail* > >> > >> I also tried to create user1's crontab ( su user1; crontab -e ) . Result is the > >> same. What's wrong? > > > >Does it work from the command line? > >The following works fine for me from my user crontab: > > > >6 6 * * 1-7 /usr/local/bin/fetchmail -s > > > > > > Yes it works, if i don't use crontab. I think the problem is that /usr/local/bin isn't in the PATH for the crontab. The easiest fix is probably to add it, in the crontab file itself (but make sure the change doesn't apply to any other entries, for security reasons).