From owner-freebsd-bugs Mon Sep 25 3:10:10 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3C91937B424 for ; Mon, 25 Sep 2000 03:10:07 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA34555; Mon, 25 Sep 2000 03:10:07 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 25 Sep 2000 03:10:07 -0700 (PDT) Message-Id: <200009251010.DAA34555@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: conf/21535: /etc/periodic/weekly/310.locate only builds FULL system database without 'echo' and '|nice...' args Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR conf/21535; it has been noted by GNATS. From: Peter Pentchev To: glenn@intextonline.com Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: conf/21535: /etc/periodic/weekly/310.locate only builds FULL system database without 'echo' and '|nice...' args Date: Mon, 25 Sep 2000 13:09:09 +0300 On Mon, Sep 25, 2000 at 02:51:34AM -0700, glenn@intextonline.com wrote: [snip] > >Description: > I discovered the problem first tonight when doing a 'locate portsentry.conf' > which resides in /usr/local/psionic/portsentry. When I did a locate it > didn't come up with the filename. I was however able to find it by > doing find '/ -name portsentry.con -print'. [snip] > >Fix: > > The only way I have found to fix the problem is to remove; > 'echo' from the beginning of the command and to remove > '| nice -5 su -fm nobody' from the end of the command, leaving > the binary to run simply as /usr/libexec.updatedb in 301.locate. What you're doing is, effectively, running libexec.updatedb as root instead of nobody. Are you sure this is not a permissions problem on /usr/local/psionic/portsentry or any of the parent directories? G'luck, Peter -- This sentence every third, but it still comprehensible. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message