From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30245 invoked by alias); 6 May 2014 17:16:31 -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 30234 invoked by uid 89); 6 May 2014 17:16:30 -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; Tue, 06 May 2014 17:16:30 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 94DED8E09EA; Tue, 6 May 2014 19:16:26 +0200 (CEST) Date: Tue, 06 May 2014 17:16: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: <20140506171626.GZ30918@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20140505135928.GK30918@calimero.vinschen.de> <53679D5C.5030209@breisch.org> <20140505144745.GA6993@calimero.vinschen.de> <5367ACED.40409@breisch.org> <20140505154230.GB7694@calimero.vinschen.de> <5367B990.8050907@breisch.org> <20140505165723.GM30918@calimero.vinschen.de> <5367DEE5.5010407@breisch.org> <20140506125203.GO30918@calimero.vinschen.de> <53691564.1070200@breisch.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ngiTnHdmUEG79yp6" Content-Disposition: inline In-Reply-To: <53691564.1070200@breisch.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-05/txt/msg00094.txt.bz2 --ngiTnHdmUEG79yp6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1779 On May 6 13:01, Chris J. Breisch wrote: > Corinna Vinschen wrote: > >Other than that, I'm open to discuss the necessity(?) to override > >the primary group by default. But, in fact, I'm not sure this really > >makes sense. Linux systems default to creating a user-specific group > >account and using that as the user's primary group for years. The > >Windows Account technique isn't quite as nice, but admittedly, it > >does its job just as well. >=20 > Yes, I've experienced that on Linux, but I don't recall having these > file permission issues there. Perhaps I just never noticed though. No, it *is* different, On Linux you get a user account called "Chris" and a group account called "Chris", and they are different because users and groups are totally different beasts on POSIX systems. You can have a user with uid 42 and a group with gid 42 and they are still different. On Windows, users and groups are identified not by uid/gid, but by their SID. The SID is a unique value, but other than that, a SID can be a user or a group and in lots of cases Windows doesn't care. A group can be owner of a file and a user can be the group of the file, it just doesn't matter to Windows. The permission "problem" you're seeing is a result of that. Your user *and* your primary group are both your user's SID. Therefore the same account is user and primary group at the same time. Therefore, if the file is created, it gets created with an ACL with user and group being the same account. Therefore the POSIX translation of the user and group permissions on the file are always the same. Does this clear it up? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --ngiTnHdmUEG79yp6 Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTaRjqAAoJEPU2Bp2uRE+gTSkP/RVsttrMLkFjZ96rY0AgJrgM 2FEl7piDRjzEj56R7J7+lSV+3lfYWwwAWeXVUUasHYRMr5V5HoZvJspPLRx0LodH Up89JUiMpqjgAVqLvvGMUK3dW86iTycti7AYxeMqiOCgboII99ihKBnRGiYtTTdL RNIZfMsA2WWNpfk4+JILuJDGgVbXbvPHtQozKy08whF9Wl35h5x6PjSuY9do1aZg EnBB4TqZNVWJIVL4sYI97v+Kgo3QFWhp1JwzAeZZ5uFksija2XMz/9PINZJWZ4wk 8w0ZxkvctHDSI3N+5AuRTIOF0vQhDtFriKKX+TXARD9FZGydOA7tVFo/5Ig2r3BN CFNfqNERW+qk/4FDVmqgkzJzaJJNtkSTRrsu/sgnOFRoLDSMj9sXwE8nWiBF+Gj6 MoHVjy2ETEEnVmTWR83WhumL3+CFWxeh6/xIHaVP2fC3W0RlXy9QXd9vW7NBAwea PUtG6eau9R35PwuRG+Ro9da3SY7CcMl1gU4gKIgeJZ2V2uYWC74EBkBQc/76Gj6g CRQe/jXFw2CC+QAvkn8P5TVoyhQOlBDf3ic0XzOaIJJ7XOUho2UIe22Sa2T6FlAW 3F9lLj82TZEN4rPsUDT+Xl0bvO2i9j5GlPh+cDKqGQjVYcO6wVHXhBtE2iTXX71l gMn7nyhhH1Vfargvyqt9 =FXBA -----END PGP SIGNATURE----- --ngiTnHdmUEG79yp6--