This is the mail archive of the
mailing list for the Cygwin project.
Differences between 'ls' permissions *nix vs cygwin
- From: aputerguy <nabble at kosowsky dot org>
- To: cygwin at cygwin dot com
- Date: Tue, 10 Nov 2009 00:44:01 -0800 (PST)
- Subject: Differences between 'ls' permissions *nix vs cygwin
I'm not sure if this is a bug or a feature.
But I find the following differences between *nix and cygwin on access
permissions of 'ls'
$ 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]
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?
View this message in context: http://old.nabble.com/Differences-between-%27ls%27-permissions-*nix-vs-cygwin-tp26280017p26280017.html
Sent from the Cygwin list mailing list archive at Nabble.com.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple