ls shows different permissions for the same file

Boemker, Tim tboemker@elynx.com
Wed Sep 12 19:05:00 GMT 2012


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



More information about the Cygwin mailing list