X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 16 Nov 2009 14:54:26 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 'ls' not finding owner/group of some files created by other     user
Message-ID: <20091116135426.GJ29173@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <26355135.post@talk.nabble.com>  <31b7d2790911142111jf12e432ua0991329f8b3eeec@mail.gmail.com>  <26360860.post@talk.nabble.com>  <20091116083735.GA3503@calimero.vinschen.de>  <26371224.post@talk.nabble.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <26371224.post@talk.nabble.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Nov 16 04:41, aputerguy wrote:
> 
> Corinna Vinschen writes:
> > It means it doesn't know the SIDs.  They don't show up in /etc/passwd
> > and /etc/group.
> 
> BUT THEY DO! And they must since why else would doing a trivial 'chmod'
> (that doesn't change anything) all of a sudden make them show up.
> 
> $ subinacl /noverbose /nostatistic /file
> C:\\cygwin\\usr\\local\\bin\\testfolder
> /findsid=S-1-5-21-1234567890-1234567890-1234567890-1005
> 
> +File C:\cygwin\usr\local\bin\testfolder
> /control=0x0
> /owner             =mymachine\userA
> /pace =mymachine\userA  Type=0x0 Flags=0x0 AccessMask=0x1f01ff
> 
> $ grep S-1-5-21-1234567890-1234567890-1234567890-1005 /etc/passwd
> userA:unused:1005:513:U-mymachine\userA,S-1-5-21-1234567890-1234567890-1234567890-1005:/home/userA:/bin/bash
> 
> Note this error doesn't happen if I create a folder (using Windows tools) in
> C:  but it does happen in all the other public places I tried, including:
> /c/Program Files
> /c/cygwin/usr
> /c/cygwin/usr/local
> /c/cygwin/usr/local/bin

In that case, the problem probably occurs because userB has no
permissions to read the file permissions.  Cygwin's chmod creates a
POSIX compatible ACL, which adds READ_CONTROL permissions for everyone.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

