This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Differences between 'ls' permissions *nix vs cygwin


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]