X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,HK_OBFDOM,HTTP_ESCAPED_HOST,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <26284853.post@talk.nabble.com> Date: Tue, 10 Nov 2009 07:22:48 -0800 (PST) From: aputerguy To: cygwin AT cygwin DOT com Subject: Re: Differences between 'ls' permissions *nix vs cygwin In-Reply-To: <20091110091438.GT26344@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <26280017 DOT post AT talk DOT nabble DOT com> <20091110091438 DOT GT26344 AT calimero DOT vinschen DOT de> 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 Corinna Vinschen-2 writes: > http://www.google.com/search?q=%22bypass%20traverse%20checking%22 I was unaware of that "feature" However, after turning it off, it still seems that cygwin 'ls' gives a different response than *nix 'ls' to a file in the subtree of a directory that is "non-traversable." For example, if the current user doesn't have excutable (x) access to 'dir1', then in Linux: $ls -nl dir1/ ls: cannot access dir1: Permission denied While in Cygwin, for any value of whether the file/directory exists or not, I seem to get the following rather than an error message. -rw-r--r-- 1 1006 513 0 Nov 30 2006 dir/ where 1006:513 = UID:GID So, changing Bypass Traverse Checking has indeed now prevented me from getting any "meaningful" file info but... Why isn't cygwin ls returning an error message here? Why isn't is consistent with *nix? (note I started a new bash process, but I haven't rebooted after change Bypass Traverse Checking) -- View this message in context: http://old.nabble.com/Differences-between-%27ls%27-permissions-*nix-vs-cygwin-tp26280017p26284853.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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