www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/10/04:15:00

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 10 Nov 2009 10:14:38 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Differences between 'ls' permissions *nix vs cygwin
Message-ID: <20091110091438.GT26344@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <26280017 DOT post AT talk DOT nabble DOT com>
MIME-Version: 1.0
In-Reply-To: <26280017.post@talk.nabble.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 Nov 10 00:44, aputerguy wrote:
> I'm not sure if this is a bug or a feature.

It's Windows.

> But I find the following differences between *nix and cygwin on access
> permissions of 'ls'
> 
> Test case:
> 
> $ mkdir -p dir1/dir2
> $ chmod 700 dir1
> 
> <switch to a another non-root/non-admin user>
> 
> $ ls -d dir1
> dir1  [both Linux & Cygwin]
> 
> $ ls dir1
>  ls: cannot open directory dir1 Permission denied  [both Linux & Cygwin]
> 
> $ ls -d dir1/dir2
> ls: cannot access directory dir1/dir2 Permission denied  [Linux]
> dir1/dir2 [Cygwin]
> 
> No acl's beyond the standard ugo posix permissions are set on either system.
> The Cygwin user only belongs to the 'None' and 'Users' group.
> 
> In particular, why is a non-privileged Cygwin user able to look over a
> blocked directory further into a file tree?

http://www.google.com/search?q=%22bypass%20traverse%20checking%22


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019