From owner-freebsd-questions Mon Apr 23 18:26:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail4.rdc1.on.home.com (femail4.rdc1.on.home.com [24.2.9.91]) by hub.freebsd.org (Postfix) with ESMTP id A4DF637B422 for ; Mon, 23 Apr 2001 18:26:17 -0700 (PDT) (envelope-from hulk-baillie@home.com) Received: from home.com ([24.42.9.223]) by femail4.rdc1.on.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010424012720.VFB718.femail4.rdc1.on.home.com@home.com>; Mon, 23 Apr 2001 18:27:20 -0700 Message-ID: <3AE4D673.25BA2162@home.com> Date: Mon, 23 Apr 2001 21:27:15 -0400 From: hulk X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Jonathan Chen Cc: questions Subject: Re: problem??? in /etc/periodic/weekly/310.locate ??? References: <3AE4BEBF.728C627A@home.com> <20010424120640.A98872@itouchnz.itouch> <3AE4CCA2.B2FED509@home.com> <20010424124934.B99763@itouchnz.itouch> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jonathan Chen wrote: > > On Mon, Apr 23, 2001 at 08:45:22PM -0400, hulk wrote: > > The script does not execute at all since "nobody" is not in "wheel"and > > /var/db/locate.database is not updated. > > The periodic scripts run as root. root can su to anyone. The wheel > group requirement is only needed for users attempting to su TO root. > > >At least this is how I > > interpret > > "permision denied". > > What's the output of `ls -l /var/db/locate.database'? > -- > Jonathan Chen > ---------------------------------------------------------------------- > "If everything's under control, you're going too slow" > - Mario Andretti ls -l /var/db/locate.database returns -r--r--r-- 1 nobody wheel 1014682 Apr23 20:34 /var/db/locate.database I am logged in as root and direct execution of the periodic script says "permision denied". If "nobody" is added to the "wheel" group the script is directly executable. I therefor doubt that the script and/or su run{s} as you say. The locate.database mod time will be change by the "touch" cmd but file will not be updated. Am I on the wrong track? Al To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message