delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-7.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4ED4FF73.3030909@redhat.com> |
Date: | Tue, 29 Nov 2011 08:51:15 -0700 |
From: | Eric Blake <eblake AT redhat DOT com> |
User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: /cygdrive/c permission denied |
References: | <201111290006 DOT pAT06SJQ2879534 AT mail DOT pittstate DOT edu> <4ED4FD6B DOT 4030109 AT etr-usa DOT com> |
In-Reply-To: | <4ED4FD6B.4030109@etr-usa.com> |
OpenPGP: | url=http://people.redhat.com/eblake/eblake.gpg |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
--------------enig056E41CF93BF0C4775E3177C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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) is different than the 'root', 'SYSTEM', or 'Users' groups, all of which have an additional ACL allowing you to chdir into the directory. --=20 Eric Blake eblake AT redhat DOT com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig056E41CF93BF0C4775E3177C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJO1P9zAAoJEKeha0olJ0NqsV4IAJK8YZM0PjRmcVYu9gY1nWPd ULa3Mf/tZ3elQ0OVcS9E3ds9iVLnvK3CIFyLwx7SwKwStRUOgEQVyQaXqBLBeSEo UmDumZf5dEGCUNgcpmxAZbsZyPO9KIz2pGT1Frg07dQPHPOVMJxisy3GImueOzpU Cq6oH/djfGFAOEIJHFTo3GqmllAqy4cKTQ90EfKx9MtAOjjMmj94moLHg4l18yqb FYYnm9bJdEMZ0r+oAnlkkQferbbHgKBt2LsmDiUYkwtUNTbpV8OGlWxDvisLjow1 9Rh2Ea8AezZwmYFSk7D0k9caW0pO/kTCLOXipeiSce+V3EGvz7Xgf9V/Cz8kUGU= =hzzm -----END PGP SIGNATURE----- --------------enig056E41CF93BF0C4775E3177C--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |