From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13055 invoked by alias); 29 Nov 2015 20:15:04 -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 13005 invoked by uid 89); 29 Nov 2015 20:15:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 29 Nov 2015 20:15:00 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 0CB86A805E6; Sun, 29 Nov 2015 21:14:58 +0100 (CET) Date: Sun, 29 Nov 2015 20:29:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.4.0-0.4 Message-ID: <20151129201458.GD2755@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20151126131633.GL2755@calimero.vinschen.de> <20151128155421.GX2755@calimero.vinschen.de> <1352387525.20151129021637@yandex.ru> <20151129125921.GA2755@calimero.vinschen.de> <20151129171043.GC2755@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZcaUvQ23gCOmDTXi" Content-Disposition: inline In-Reply-To: <20151129171043.GC2755@calimero.vinschen.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-11/txt/msg00482.txt.bz2 --ZcaUvQ23gCOmDTXi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2812 On Nov 29 18:10, Corinna Vinschen wrote: > On Nov 29 15:10, Kacper Michajlow wrote: > > 2015-11-29 13:59 GMT+01:00 Corinna Vinschen : > > > Status 0xC0000078 aka Win32 error 1337 means "invalid SID". And the > > > SID 1-5-32-1001 is in fact invalid. The S-1-5-32 prefix denotes a bu= iltin > > > account, but the RID 1001 is invalid for a builtin group. 1001 is the > > > RID of your user account, though, but that would be prefixed by the S= ID > > > of your machine, which looks like S-1-5-21-XXXXXXXX-YYYYYYYY-ZZZZZZZZ. > > > I don't see how this broken SID came into life, unless your /etc/pass= wd > > > and/or /etc/group files are broken (hand edited perhaps?). > >=20 > > I guess I only changed shell to zsh in /etc/passwd, but no other > > changes were made. So I have no idea how they could get corrupted > > either. >=20 > They aren't. There is no 1-5-32-1001 SID in those files and both files > look entirely insuspicious. Given that Cygwin doesn't create any such > SID from scratch, I'm totally puzzled where this SID is coming from. > Your mkdir trace output doesn't show this SID anywhere else either. > This definitely requires more debugging... I think I found it. The problem was the handling of Microsoft Accounts on machines still using passwd and group files. And the additional group entry for the user with a gid different from the user's uid was required to uncover this problem. This is fortunately a border case, but the fix seemed to be simple so I applied it and added a comment so as not to forget why we have to do that. > > Works. >=20 > Ok, that's good to know. Now I just have to find out where this > weird SID was created :-P That fall into place after I realized what was happening. The gid 1001 didn't exist in /etc/group so Cygwin calls the function to evaluate a SID from a computed UID/GID, and this in turn generated the invalid 1-5-32-1001 SID. WHile writing this I realized that I should harden this part of the code to accept only RIDs < 1000... > > I personally am fine with abandoning /etc/passwd and /etc/group. This > > is good enough solution for me. Though there might be other people > > with the same issue. >=20 > This seems to be a bug in Cygwin, and with the content of your files I > finally managed to reproduce the issue. I'm planning to debug this next > week and, hopefully, come up with a patch. It would be nice if you > could do another test then in your environment :} I just uploaded new developer snapshots to https://cygwin.com/snapshots/ and a new test release 2.4.0-0.6 with the aforementioned patch. Please give any of them a try. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --ZcaUvQ23gCOmDTXi Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWW1zBAAoJEPU2Bp2uRE+g2vUQAIZ3v3LEHxyy8vVMbzT0NrfX PzwVO5iHg/ZO6ugEXkPtCZF3LZBKzsJT0gmIClUGSwUvRvcoYHpALj2i+TKHvV2I QonY0FnpsXqKX5ENk9FbMzGjBWbS4fM9g/DytBqzBwqQqIBotT49dEDzdN5CxpqV 7f2viSUS1jbp4RmsBUha90cWjkpGUJjglQzKiDNtumX4SzTJ7AxtlwBb2Q60ArrK cTipRbry6emzq2HPHhmyVCp8PkEC0YYG0nmGFWBTSE0yC3o/0xAXiNmo9OIhLUOc JQ6hmHgvvX8fTvZSl7S4g4Cl+uhPFbV3pmHRp+uiBanCbV82dDZG36pr/aA9JKlM A1C7PEcdQL+UCbK2LUwqasafgemk+U5hBhmNQWlc2ZVgnS/NeK7dP4HUAScAayYt pCCSF8GSwVCaNxehWYwzU5svOG8aO2rOPbvpOHdO3WT7FQr+cf8Hodz2sy3iyroH 2rnRiYCu0U1eN1PU1o5q9mgoqSWropCiByo8Cf8HjVsEsoa1aGUTW8cAGFIy/XTX qzIQCIs3M7nLmccFCRqqbGAdlnITioHHarjmjDJ0ugqgftyuuN31h/KHT8scObI+ 59uw2b05097T7p3uofHeIinn8XmmO/z8T32vuyTDNlPZwbsuVKVifhCr5dg89qR6 hYjbL9mTEvVgxdav0H9h =SNpg -----END PGP SIGNATURE----- --ZcaUvQ23gCOmDTXi--