From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10164 invoked by alias); 7 May 2014 14:46:16 -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 10155 invoked by uid 89); 7 May 2014 14:46:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham 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; Wed, 07 May 2014 14:46:15 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id D06768E09EA; Wed, 7 May 2014 16:46:11 +0200 (CEST) Date: Wed, 07 May 2014 14:46:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Microsoft Accounts (was Re: Problem with "None" Group on Non-Domain Members) Message-ID: <20140507144611.GM30918@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <5367B990.8050907@breisch.org> <20140505165723.GM30918@calimero.vinschen.de> <5367DEE5.5010407@breisch.org> <20140506125203.GO30918@calimero.vinschen.de> <53691564.1070200@breisch.org> <20140506171626.GZ30918@calimero.vinschen.de> <53692867.4060305@breisch.org> <20140507115730.GE30918@calimero.vinschen.de> <20140507124038.GG30918@calimero.vinschen.de> <536A3E80.2060602@breisch.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xdAuejbAAr3yyIdQ" Content-Disposition: inline In-Reply-To: <536A3E80.2060602@breisch.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-05/txt/msg00131.txt.bz2 --xdAuejbAAr3yyIdQ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1741 On May 7 10:09, Chris J. Breisch wrote: > Corinna Vinschen wrote: > >And here's a problem which I'm not sure how to solve at all: > > > >When calling the latest mkpasswd, the primary group of the local > >user account backing the Microsoft Account will *still* be "None". > > > >The reason is that the local account is just the same old account > >as usual. Its default primary group *is* "None". > > > >Only when logging in via the Micosoft Account email address, the > >user token will not reflect what's stored in the local SAM, but > >will have been changed by the OS as outlined in this thread. > > > >So, when a user decides to create a passwd file rather than using > >the SAM/DB code in Cygwin, the information generated by mkpasswd > >will not match the user token, and the primary group stored in > >/etc/passwd will not even be available at all in the user token. > > > >I have not the faintest idea how to workaround this schizophrenia. > > > > > >Corinna > > > Oh wow. It took me two reads of this to understand it. Caffeine is > finally kicking in, I guess. Unless you just want to hard code the > primary group that mkpasswd generates to "Users" for any account > that it would tend to want to set as "None". That would be some > smelly code though. Hmm, but it might fix a couple of problems. If we go ahead and always convert the "None" primary group to "Users", we'd have a pretty stable state, which works nicely for local accounts, independently of habving logged in as normal account or as Microsoft=20 Account. This might be the easiest workaound, in fact. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --xdAuejbAAr3yyIdQ Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTakczAAoJEPU2Bp2uRE+gB94P+wRUTtqjhjfum/OHLyN7LCCv N3UQD/gAhoNaMY7ulLNKs8xbJC6u9VRBeGxg9YxCdOGayZEszBdBwtAF7xs5Dnxs 4wRqhjTISRucNtyZ8EtDw8aoFGYeB0xNrisZkb/tMyTssBQW2DRjRRh5WsQvNIfy 78mKmRJ+TAWueM6xkutGL5wltJVH9GzruL0oOb0+CTbpFiFJy1+hAw7HvELHDQLc efrQEUJLQf0NSttvBO+bK0ydY6O0n5jMUg3rul6GZTXnXzvUoNVhFO3ZDQ39MGAe Wu3EPfrsxn36N1e0NkOZuT/mtcld8JqDEsA13b8jP0N2YxrDSAky3gcwcKFXsoZL Lwh+eaH2jz8CYRt84o3fEBx0TwJp5qKVN5bfzFH1A6WVkzjbvI6t2tyopWQu9JyC nszk3Dk9rbXyzniku21p23OmASIhP/TCzFCX0tzlnU7yzpIpEFICuTtZpbarj4JD ymGxEtq54DDohBD9LVFDNRjZsFle3DRbBmxl/LnsoQVaG/uw4LmwhR9zv4hxHc88 jgnR647uVdqMLQkcrKUA3whaNQPpG9F8Q/K64X/KXDyDsjFGL9Msk4KKWnmmKpbo dlOxHlzSiAzMxAeu/efXYYo1BgWgjrr+gxIzHOrjWV8E8+VQbUONbM5zGVb0CBrw E9QG/TMcK3u/4wRhWYxP =/WJA -----END PGP SIGNATURE----- --xdAuejbAAr3yyIdQ--