ls shows different permissions for the same file

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Wed Sep 12 17:40:00 GMT 2012


On 9/12/2012 8:20 AM, Boemker, Tim wrote:
> ls reports different permissions for the same file, depending on whether I provide a Windows-form path or a UNIX-form path:
>
> $ /bin/ls -ldi c:/apps/amq-versions/amq.12.1.0-RC42/conf /cygdrive/c/apps/amq-versions/amq.12.1.0-RC42/conf
> 7318349394635879 drwxrwxrwx+ 1 tboemker Domain Users 0 Sep 12 07:56 /cygdrive/c/apps/amq-versions/amq.12.1.0-RC42/conf
> 7318349394635879 drwxr-xr-x  1 tboemker Domain Users 0 Sep 12 07:56 c:/apps/amq-versions/amq.12.1.0-RC42/conf
>
> $ /bin/ls --version
> ls (GNU coreutils) 8.15
> Packaged by Cygwin (8.15-1)
> ...
>
> Am I missing something, or is this a bug?

No, no bug.  If you specify the POSIX path, you get full POSIX permission
emulation.  If you provide Windows paths (or the mount point under which
the file in question lives is mounted with the 'noacl' option), you get
default, hard-coded POSIX permissions.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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