From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85147 invoked by alias); 8 Feb 2016 14:29:34 -0000 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 Received: (qmail 85133 invoked by uid 89); 8 Feb 2016 14:29:33 -0000 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 Received: from ipbcc0d020.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.208.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 08 Feb 2016 14:29:32 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 8A1E4A804E5; Mon, 8 Feb 2016 15:29:30 +0100 (CET) Date: Mon, 08 Feb 2016 14:29:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: chmod failed: Invalid argument Message-ID: <20160208142930.GF12975@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20160128144429.GC27369@calimero.vinschen.de> <20160128172256.GB18626@calimero.vinschen.de> <20160128204021.GA7055@calimero.vinschen.de> <56AE6D83.9070201@gmx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oFbHfjnMgUMsrGjO" Content-Disposition: inline In-Reply-To: <56AE6D83.9070201@gmx.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2016-02/txt/msg00078.txt.bz2 --oFbHfjnMgUMsrGjO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2541 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" Content-length: 819 -----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--