From owner-freebsd-questions Thu Mar 28 1:32:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from glidden.org (CPE0050bae86969.cpe.net.cable.rogers.com [24.112.22.141]) by hub.freebsd.org (Postfix) with ESMTP id C506E37B400 for ; Thu, 28 Mar 2002 01:32:03 -0800 (PST) Received: from localhost (rglidden@localhost) by glidden.org (8.11.6/8.11.6) with ESMTP id g2S9VZo00488; Thu, 28 Mar 2002 04:31:35 -0500 (EST) (envelope-from richard@glidden.org) X-Authentication-Warning: charon.acheron.localnet: rglidden owned process doing -bs Date: Thu, 28 Mar 2002 04:31:34 -0500 (EST) From: Richard Glidden X-X-Sender: rglidden@charon.acheron.localnet To: Stas Kysel Cc: freebsd-questions@freebsd.org Subject: Re: Locate database not finding all files accessible by nobody In-Reply-To: <20020327110038.A14725@tiger.unisquad.com> Message-ID: <20020328041835.C416-100000@charon.acheron.localnet> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 27 Mar 2002, Stas Kysel wrote: > Recently I met the same trouble and was searching maillists to find > solution. Unfortunately, your question was not answered. Finally, I found > what was happening in my case, and probably this will help you or > more probably somebody else. Thank you very much for your response! I still hadn't found the time to track down the problem, but your message pointed me in the right direction. > 2. mode of /old looked like 755 when /old was mounted, but permissins > were a bit strange: > a. find, if run as non-root, was able to chdir to /old, but was not able > to chdir back to ".." (probably because of no "r" in 700) > b. non-root shell behaved the same way: can chdir to /old, cant chdir > back to ".." I never tried to "cd .." from the directory that I was having problems in. I figured if I could get in to the directory and do an "ls" as nobody, that would be enough for locate to do its thing. When I tried "cd .." though, I was having the same problem. The /home mountpoint was 700, but when mounted, /home was 755. Unmounting /home and fixing the permissions of the mount point got locate working again. Thanks! - Richard Glidden richard@glidden.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message