From owner-freebsd-questions Sun Oct 17 15:13:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [36.33.0.163]) by hub.freebsd.org (Postfix) with ESMTP id E14D514DFD for ; Sun, 17 Oct 1999 15:13:19 -0700 (PDT) (envelope-from andrsn@andrsn.stanford.edu) Received: from localhost (localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.9.3/8.9.1) with ESMTP id PAA12610; Sun, 17 Oct 1999 15:04:10 -0700 (PDT) Date: Sun, 17 Oct 1999 15:04:10 -0700 (PDT) From: Annelise Anderson To: Francisco Reyes Cc: Edirol , FreeBSD questions Subject: Re: Permission denied when rebuilding locate db In-Reply-To: <199910172018.QAA24302@sanson.reyes.somos.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I think the building of the locate database was revised to provide additional flexibility and security, so that the location of some files need not be reported in the database. The building of the database is controlled by the variables in the rc.locate file, which notes that if the path locate uses begins where locate cannot read, it produces empty databases. If users' home directories are 750, their files will not be recorded in the database either, which is probably desirable for a machine used by more than one person. It's possible to build more than one database, and to move them around, and to use a specific locate database using the -d switch. The option to write the database to a particular file is included in rc.locate. Annelise On Sun, 17 Oct 1999, Francisco Reyes wrote: > On Sun, 17 Oct 1999 14:44:02 -0400, Edirol wrote: > > /root was "750" so this is probably the case. > This must be a bug. I can't think of any good reason to have /root "755" > > >I had this problem once. In my case it was because my /root directory was > >"chmod 750". After I set it to "chmod 755" I didn't get the error anymore. > > > >> I have moved creating of the locate database to /etc/periodic/daily. > >> For a month or so it worked fine but lately the locate db has been zero > >> bytes. When I look at the daily run output I see: > >> > >> Rebuilding locate database: > >> find: .: Permission denied > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message