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]

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


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