X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 29 Nov 2011 18:12:54 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: /cygdrive/c permission denied
Message-ID: <20111129171254.GA23942@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <201111290006.pAT06SJQ2879534@mail.pittstate.edu> <4ED4FD6B.4030109@etr-usa.com> <4ED4FF73.3030909@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <4ED4FF73.3030909@redhat.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
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 29 08:51, Eric Blake wrote:
> On 11/29/2011 08:42 AM, Warren Young wrote:
> > The only serious difference I see here is that I get "d---------+", so
> > going by just that, I shouldn't even be able to cd into it!
> 
> See that + on the end of the mode field?  That means there are ACLs in
> affect; and my guess is one of the ACLs allows your uid to change to
> that directory even though the owner of the directory does not have the
> same permissions.
> 
> > $ getfacl /c
> > # file: /c
> > # owner: ????????
> > # group: ????????
> > user::---
> > group::---
> > group:root:rwx
> > group:SYSTEM:rwx
> > group:Users:r-x
> 
> Yep - just as I said.  The actual uid/gid owner (which is probably being
> treated as -1 meaning your /etc/group and /etc/passwd are incomplete)

For system installed dirs, that's typically the "TrustedInstaller"
account, which doesn't match any usual SID scheme.  It's not in
/etc/passwd or /etc/group since mkpasswd/mkgroup don't make any effort
to generate an entry.  Patches welcome.


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

