X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Date: Sun, 14 Feb 2010 12:14:57 +0100 From: Gary To: cygwin AT cygwin DOT com Subject: Re: What permissions should /home/user/.. have? Message-ID: <20100214111457.GA2428@mimosa.garydjones.name> Mail-Followup-To: cygwin AT cygwin DOT com References: <20100213100834 DOT GA3828 AT mimosa DOT garydjones DOT name> <4B76F2D6 DOT 90108 AT cygwin DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B76F2D6.90108@cygwin.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Sat, Feb 13, 2010 at 01:43:34PM -0500, Larry Hall (Cygwin) wrote: > On 02/13/2010 05:08 AM, Gary wrote: > >Weird question maybe, but what permissions should the ".." directory > >entry have that sits in /home/? > > > >I'm getting some weird behaviour from grep -r (in my home directory it > >appears to be traversing up the .. entry and trying to access other > >users' files) and wondering if the permissions are the cause. > > You sure you don't have a symlink or mount that grep can traverse in > that directory? Hmm. There are some symlinks, but not to the other user's home directory. I know what it is. User error, I suppose. I did: $ grep -Irl foo .* I should have done $ grep -Irl foo .[^\.]* which correctly searches just the dotfiles without traversing "..". -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple