From owner-freebsd-questions@FreeBSD.ORG Sat May 22 12:39:23 2004 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 9ACCB16A4CE for ; Sat, 22 May 2004 12:39:23 -0700 (PDT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44EBF43D58 for ; Sat, 22 May 2004 12:39:23 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (pa-plum1c-102.pit.adelphia.net [24.53.179.102]) by internet.potentialtech.com (Postfix) with ESMTP id 7D34869A71; Sat, 22 May 2004 15:38:39 -0400 (EDT) Message-ID: <40AFAC3C.8070605@potentialtech.com> Date: Sat, 22 May 2004 15:38:36 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040506 X-Accept-Language: en-us, en MIME-Version: 1.0 To: chip References: <20040521141741.53444.qmail@web40403.mail.yahoo.com> <20040522082220.I29103@grond.sourballs.org> <40AF65C5.1060506@potentialtech.com> <40AFA388.7080006@wiegand.org> In-Reply-To: <40AFA388.7080006@wiegand.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: cron can't find root or operator X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2004 19:39:23 -0000 chip wrote: > Thanks for all the help. I like the changes so far. What about > specifically mentioning in the Handbook chapter that when a user runs > the command > crontab crontab > the user should do this in their own home directory. My problem was I > ran it in the /etc directory, not knowing any better, probably becuase > that bit wasn't mentioned in the Handbook, or if I recall correctly, > even the FAQ. The Handbook text states > "Let us take a look at the /etc/crontab file (the system crontab):" > Followed by the section on the user crontab and the warning paragraph, > but no mention of doing this in the user directory, not /etc. Please take another look at that chapter in the handbook. It was just updated today with changes provoked by this conversation. I feel that it's much better at explaining how things work now, but I'd be interested to hear feedback from someone like yourself, who is having difficulty. > So, now I am trying to run - > crontab crontab > in my non-root user directory, as the non-root user, and it fails with > this- > "crontab: crontab: No such file or directory" The second "crontab" in that command is the filename of a file to use as input when creating the crontab. It doesn't appear as if you've created such a file. If you want to create one from scratch, "crontab -e" might work better for you. > I tried - > crontab -u chip crontab -e (with and without the -e) > also and it failed with the same message. So I then su'd and tried again > and got the same message again. The I tried - > /etc/crontab -u chip crontab (with and without the -e) > and get permission denied, as root. > I am running 5.1-Release, and a standard default install. > Regards, > Chip > > Bill Moran wrote: > >> David Fleck wrote: >> >>> If you already have a file written in the proper format, you can load it >>> as your crontab by specifying 'crontab {filename}'. (That's what section >>> 6.6.1 in the handbook is trying to say. Unfortunately, it is not at all >>> clear on this.) >> >> >> >> There was an outstanding PR on this ... I made a few additions, and I >> think >> the handbook will explain this much better now. Sounds like a >> committer is >> going to get this into the tree within the next few days. >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=docs%2F66963 >> > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > -- Bill Moran Potential Technologies http://www.potentialtech.com