Mail Archives: cygwin/2016/01/28/13:44:11
X-Recipient: | archive-cygwin AT delorie DOT com
|
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
|
| :list-unsubscribe:list-subscribe:list-archive:list-post
|
| :list-help:sender:mime-version:message-id:from:to:subject
|
| :content-type:date:in-reply-to:references; q=dns; s=default; b=T
|
| 5F4NPDFnIxH01I1GUlQzqpHoyYmfaze7eBzesi/N0nyfQDaJDhYBYDuSaGB5e1lP
|
| PhTMKEVHmAVgRN35OAavyHWaYA3uHbAT2tte1YWOewgS3daaW2l1wqe/ZqohzgBV
|
| rtYmiy4qwVXtsHF8iHu5A7qotSXsFA2JLzepB08rXg=
|
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
|
| :list-unsubscribe:list-subscribe:list-archive:list-post
|
| :list-help:sender:mime-version:message-id:from:to:subject
|
| :content-type:date:in-reply-to:references; s=default; bh=pkGScYw
|
| QrBa9WgD8UNePIGLcITE=; b=We46sde9KoMk5FHBp3W/Alv5Fgr0zweUTaRfpc+
|
| APPJ46lvzN4207J9M9y/dRbrPkZ4YDtSC/KhjlY6ZlYgERWuaTjTxsK12oWiHqC8
|
| vcVnY/grsc08H/AplGjWLeXnM8lAYZnQKlux6l/lpShDUxhTclM5Z2cDjuBNtnVJ
|
| ylAs=
|
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
|
Authentication-Results: | sourceware.org; auth=none
|
X-Virus-Found: | No
|
X-Spam-SWARE-Status: | No, score=0.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=owning, acls, ACLs, mysterious
|
X-HELO: | mout.gmx.net
|
MIME-Version: | 1.0
|
Message-ID: | <trinity-7ee91fc7-9323-4efa-bbe7-b3420e77c824-1454006627384@3capp-gmx-bs39>
|
From: | "Rainer Blome" <rainer DOT blome AT gmx DOT de>
|
To: | cygwin AT cygwin DOT com
|
Subject: | Re: chmod failed: Invalid argument
|
Date: | Thu, 28 Jan 2016 19:43:47 +0100
|
Sensitivity: | Normal
|
In-Reply-To: | <20160128172256.GB18626@calimero.vinschen.de>
|
References: | <trinity-f5aca8d9-16f5-41e1-a521-60beada36d8e-1453991058087 AT 3capp-gmx-bs39> <20160128144429 DOT GC27369 AT calimero DOT vinschen DOT de> <trinity-1207f321-8a47-46bf-99f9-9c2eb5b08d91-1453997213459 AT 3capp-gmx-bs39>, <20160128172256 DOT GB18626 AT calimero DOT vinschen DOT de>
|
X-UI-Message-Type: | mail
|
X-UI-Out-Filterresults: | notjunk:1;V01:K0:T2lv0MVVio4=:Qd4tWz2N8etPGpngao6myL SwcZLDO/w06AfatJ2i6AEVxgkmcuurjyKXHx+EturW1Ghqp3iOGnzG85dV78fL8fW5bmr1y5L dr3erwmLqihVaAwu2dzP1A4PAqv2jd8IPzT00+iLfFxp+hGQfid+lnykvVxv480KfCXdV9MUJ g9seqhOS0r9LzRApN0NUlaxLiYOmj3PXt8xSxjWv/eEINegvGD9GcXnQtUN/lqo+x3Fkpzfbu fsIgmZRKe4mZHqBEwR+G8K6XJtlK+P/7F9LzR3K3FdU+xIgONtAmioywdN6s8U673sJqcn7MZ zpgik+V8bPQpIe5HKT77pUcVvuZ6EdN2V5QZ4imXELeIiUsAaHrhjcN0b7oedrF13mVbEGitB XYrRflZoI0JUckIjqrwG0ilCw3eNiCfFhO6r/2BZuL/DHymfdFhw3Pi8xjVXVaigsFD/LDDof S2E8bScdKg==
|
X-IsSubscribed: | yes
|
> Corinna Vinschen wrote 2016-01-28 18:22:
> On Jan 28 17:06, Rainer Blome wrote:
> > > Corinna Vinschen wrote 2016-01-28 15-44:
> > > On Jan 28 15:24, Rainer Blome wrote:
> > > the acl should always at least contain ACEs for the
> > > default POSIX perms, plus a NULL ACE:
> > >
> > > foo NULL SID:(DENY)(Rc,S)
> > > VINSCHEN\corinna:(R,W,D,WDAC,WO)
> > > VINSCHEN\vinschen:(R)
> > > Everyone:(Rc,S,RA)
> >
> > In Windows Explorer -> `bar` -> RMB -> Properties -> Security ->
> > Advanced, I am told that it inherits ist permissions from `base`,
> > the parent of `bar`. (To be precise, it inherits from its
> > grandparent, but I assume that the length of the ancestor chain is
> > not important here.)
>
> This means the permission have been inherited when creating the
> file but Cygwin couldn't overwrite the ACL with a POSIXified variant
> for one reason or another. It might have to do with this mysterious
> group 213...
>
> > > For directories also inheritable default perms for "CREATOR OWNER" and
> > > "CREATOR GROUP". Is that really a Cygwin mkdir?!?
> >
> > As far as can see, yes, see above.
> >
> > > And then, what about
> > > this unknwon group with gid 213? What does
> > >
> > > $ getent group 213
> > >
> > > print? Something's weird here...
> >
> > getent group 213; echo $?
> > 2
>
> Ok, that's not exactly helpful to analyze this problem. Can you try
> running another strace
>
> strace -o getfacl.trace getfacl <file>
>
> on a file which has supposedly that group as owning group, e.g. your
> "base" dir? We might have a chance to look at the SID of group 213 in
> there.
That command segfaults, just as `strace : ` does.
> On a hunch, do you have old /etc/passwd and /etc/group files by any
> chance? Does moving them out of /etc (don't delete them for now!),
> exiting from Cygwin and starting a new shell somehow fix things for you?
> How do the files look like?
Define "old"! ;-) Yes, I do. There is no `/etc/group`, but
`/etc/passwd` defines the group ID of my user as 213 (the real ID
is a bit different, to be honest, but I do not think that matters.)
When I rename the file and open a new Cygwin terminal, things start
to work. `strace echo` yields the expected output, `chmod` does
what it's supposed to do, and `git config`, `git init` and `git
clone foo foo2` work as well.
The `git clone repo:bar` then fails because my `~/.ssh` is
apparently no longer found (and I can only log in via SSH
key). This is a bit surprising, because in the new terminal,
`$HOME` and `~/.` are still set the way I specified it in the old
`/etc/passwd` (now with extension `.renamed`). So some programs
apparently use one method of determining the home directory, and
others use a different method. I will look into that tomorrow.
If, after this "breakthrough", there is still value in looking
further into the ACLs, I am willing to do that. However, the strace
output looks awfully laborious to sanitize, so I can not do this
today.
Thanks for the help so far.
Rainer
--
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
- Raw text -