From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18601 invoked by alias); 29 Nov 2011 17:13:40 -0000 Received: (qmail 18532 invoked by uid 22791); 29 Nov 2011 17:13:16 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Tue, 29 Nov 2011 17:12:57 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id B3CD92C005A; Tue, 29 Nov 2011 18:12:54 +0100 (CET) Date: Tue, 29 Nov 2011 18:03:00 -0000 From: Corinna Vinschen 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: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-11/txt/msg00451.txt.bz2 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