Mail Archives: cygwin/2016/02/08/09:29:48
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:date:from:to:subject:message-id:reply-to
|
| :references:mime-version:content-type:in-reply-to; q=dns; s=
|
| default; b=TOVa+Nrnm2SGmgXIUbD3sbwhvB5LJKIyq2/sHGBn/Ot97eKqYR+ZF
|
| R8XZymw8YZzxceMsMS41Wati2Pj5+rEXQbsq1X0FUtMX76dReZXTklqo9GFf7Pql
|
| 7+Fr+MWCi3Sc8gD1cwql31mc6srV7H5s+2Roy/4PrsZDuMwv4ME0Ic=
|
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:date:from:to:subject:message-id:reply-to
|
| :references:mime-version:content-type:in-reply-to; s=default;
|
| bh=1dN4lJTIz1Em0xYMgtDCvNzLwCs=; b=vInCfFFew809f3QnMwu9jNBE3Jgm
|
| pcDHDc3m3ScaS8g2ceK3Cm5npW2cOgbxuuz8YDi5ONfk4MQNZRtsUvmpMvCUnggC
|
| YfxC1Ur67tT3ieeAzoIfP7Zl8r58IxulnS+HQ2YmyP0s58e2RL81iUhJTIujblZn
|
| VeX06P1pe7leEtM=
|
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=-93.9 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=197121, H*R:D*cygwin.com, Rainer, blome
|
X-HELO: | calimero.vinschen.de
|
Date: | Mon, 8 Feb 2016 15:29:30 +0100
|
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
|
To: | cygwin AT cygwin DOT com
|
Subject: | Re: chmod failed: Invalid argument
|
Message-ID: | <20160208142930.GF12975@calimero.vinschen.de>
|
Reply-To: | cygwin AT cygwin DOT com
|
Mail-Followup-To: | cygwin AT cygwin DOT com
|
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> <trinity-7ee91fc7-9323-4efa-bbe7-b3420e77c824-1454006627384 AT 3capp-gmx-bs39> <20160128204021 DOT GA7055 AT calimero DOT vinschen DOT de> <56AE6D83 DOT 9070201 AT gmx DOT de>
|
MIME-Version: | 1.0
|
In-Reply-To: | <56AE6D83.9070201@gmx.de>
|
User-Agent: | Mutt/1.5.24 (2015-08-30)
|
--oFbHfjnMgUMsrGjO
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Jan 31 21:24, Rainer Blome wrote:
> On 28.01.2016 21:40, Corinna Vinschen wrote:
> >>> 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?
> >>=20
> >> Define "old"! ;-) Yes, I do. There is no `/etc/group`, but=20
> >> `/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=20
> >> matters.)
>=20
> The real group ID is 513, by the way. On a Cygwin 2.3.1 on a different
> machine, `/etc/passwd` also has 513 in the group column of all users.
> Yet, when I ask for `id`, I get something like this (translated):
>=20
> uid=3D197609(username) gid=3D197121(None) \
> Groups=3D197121(None),545(Users),...
These values make sense.
> > Ouch, that may be the reason. I have to check that but your passwd
> > and group files are
> >=20
> > 1) Not required anymore, see=20
> > https://cygwin.com/cygwin-ug-net/ntsec.htm, and
>=20
> Well, I do not use Active Directory, and I try to maintain a stable
> home directory across new machines, drives or Windows reinstalls,
> so I specify this directory in `/etc/passwd`. Since it is small,
> I see no harm in using this method.
>=20
> On my Cygwin 2.4.1, to get things to run the way I want them, I
> renamed `/etc/passwd.renamed` back to `/etc/passwd`, and replaced
> the old group id by the ID of group "None", 197121.
> In a new terminal, things now run as expected, SSH finds its .ssh
> directory and `chmod` etc. work the way that they should.
>=20
> > 2) *iff* they are there, there's good reason to have them in a good
> > working shape.
>=20
> No doubt. So what kind of maintenance do these files need?
> Should I have known that they do?
They should match. For instance, one problem is if your passwd entry
contains a gid not available in either the Windows user DB or /etc/group.
> > Thanks for *your* help. I expect there are still a few problems in
> > that code since not even a multi-month testphase finds all problems.
>=20
> I am curious what change triggered the issue, can you point me to a
> commit or change-log entry?
Not a single one. It's probably related to the new ACL handling but
knowing it more specificially requires debugging.
Corinna
--=20
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--oFbHfjnMgUMsrGjO
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJWuKZKAAoJEPU2Bp2uRE+gaYwP/RuTmBXD8uNAi9ZXdUZ4gOOU
k0/v7VxQsVLg3PXJ5A7VSPi0fb9Rf2hljcA0sBHtL2O17FwN1SMTY1X4em5PrRYT
jmRr8XHazJmQvwJX31T859lN/X7wFsLpOvyVb5mY3QZYQpKViZc5xLkPF6GGbwDp
wqXWKyrOvkuO0Wb4PXsRT7hlLtqBpUPy+811Off+8FD250Qb43KFqIccnlLNK0t/
iR81seT7tq4iUvW+JswIgoF7ugNoHq0R37RjewR0cwNO8DcDv5CypNmZyIOAya8z
XqwBCmeV/FGrWftiTdk7qxsDC8OMb1Xbdd20M5TKXNVkuHm6Bjr7JaLio0yXqK6Q
Zw9JoSq4fBY2RfUTljNZFvqHb7qP6EFkpuJtC6yMXsKXEGbf1TA+mNoGukrse2y2
ayYSVBdd/rfGaWTP9AxOOob2nLWvXtGZoIIlu15IptMbzdtDtVa5Bsr3rDCKag4k
cVgwUZUaTVK05YngkcAbxvxywb4JXybvaXwMHqYRdF58Mq6fX+HNLb8ZUOOvr+si
EMuS2pNE5pBbQP6aOFGB3iu0k1cMc8YVGhxbCWOcjbJ+gY7x2gXNXJRIHKVgJw/+
/I+XLrSuqYN/SN4sqUXiU1MouOO+VNorgQcBlDxHdeUPxO0DCr3ukR/7ng9rrDut
895jB1z1Vkc4Q6aur9OX
=1skU
-----END PGP SIGNATURE-----
--oFbHfjnMgUMsrGjO--
- Raw text -