This is the mail archive of the
cygwin
mailing list for the Cygwin project.
ls shows different permissions for the same file
- From: "Boemker, Tim" <tboemker at elynx dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Wed, 12 Sep 2012 18:57:59 +0000
- Subject: ls shows different permissions for the same file
Larry,
Do you mean that, with a POSIX path, I get ACL-based permissions, but with Windows paths, I get just user-group-other permissions?
That sounds reasonable, but shouldn't they agree as far as they overlap? In the following example, for example, shouldn't they agree whether foo is writable by Domain Users?
$ touch foo # create a plain file
$ ls -li c:/cygwin/home/tboemker/foo /home/tboemker/foo
14918173765807874 -rw-r--r-- 1 tboemker Domain Users 1 Sep 12 14:47 /home/tboemker/foo
14918173765807874 -rw-r--r-- 1 tboemker Domain Users 1 Sep 12 14:47 c:/cygwin/home/tboemker/foo
$ chmod 666 foo
$ !l
ls -li c:/cygwin/home/tboemker/foo /home/tboemker/foo
14918173765807874 -rw-rw-rw- 1 tboemker Domain Users 1 Sep 12 14:47 /home/tboemker/foo
14918173765807874 -rw-r--r-- 1 tboemker Domain Users 1 Sep 12 14:47 c:/cygwin/home/tboemker/foo
Thanks,
Tim
--
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