From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26011 invoked by alias); 12 Sep 2012 15:09:11 -0000 Received: (qmail 26003 invoked by uid 22791); 12 Sep 2012 15:09:09 -0000 X-SWARE-Spam-Status: No, hits=1.6 required=5.0 tests=AWL,BAYES_50,BOTNET,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_RW,TW_WX X-Spam-Check-By: sourceware.org Received: from vms173007pub.verizon.net (HELO vms173007pub.verizon.net) (206.46.173.7) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 12 Sep 2012 15:08:54 +0000 Received: from [192.168.1.231] ([unknown] [96.237.111.191]) by vms173007.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MA800NVBSQ23N41@vms173007.mailsrvcs.net> for cygwin@cygwin.com; Wed, 12 Sep 2012 10:08:31 -0500 (CDT) Message-id: <5050A56B.6090704@cygwin.com> Date: Wed, 12 Sep 2012 17:40:00 -0000 From: "Larry Hall (Cygwin)" Reply-to: cygwin@cygwin.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-version: 1.0 To: cygwin@cygwin.com Subject: Re: ls shows different permissions for the same file References: In-reply-to: Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-09/txt/msg00154.txt.bz2 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