From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10034 invoked by alias); 6 May 2014 18:22:41 -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 10019 invoked by uid 89); 6 May 2014 18:22:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f169.google.com Received: from mail-ig0-f169.google.com (HELO mail-ig0-f169.google.com) (209.85.213.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 06 May 2014 18:22:37 +0000 Received: by mail-ig0-f169.google.com with SMTP id hl10so3114749igb.2 for ; Tue, 06 May 2014 11:22:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=jQeBta9sp3hKBdRinKZKSNZyoOxoQX4y8NOo0T2H38w=; b=CtsQKBx7gZODnt/Q2pRIzySk2sj2kxrGIKf2jonmhT1ljkRJuJAxlX9k6JcroXeNGf RG8iyqEFSHubmlPAk7NGtW2v7Xv0OOT2m993CbSjanq5VyOKKIDzq3S6+YjGAUsfGQJM OsZbI7WGqPFsB+5SkdYtwKumABl5BDVn24xPI9dyjmwNb5ayzqI1lychYCJ8i/WHop9E 2lfGSwKug5otzHO/lmEXNdKLoXGL9eblvqLjXCifa0WR5GFrpdLOsfPLvkf9yssbKY/i es0ScbA4he7f7ocTM/nD9cyg+xPCgttBVO4rPXNxojc3N0L2ljZPXgsvU+UpcV2hHYqH cMiA== X-Gm-Message-State: ALoCoQnc6sl4uoVNaXOH/UTzgbxWwQe3Q+RD7NalW4zsRHkejoEWCMS1wz70144DzbBki9y6Pw0P X-Received: by 10.43.58.19 with SMTP id wi19mr17069421icb.53.1399400555170; Tue, 06 May 2014 11:22:35 -0700 (PDT) Received: from [192.168.2.237] (76-219-158-219.lightspeed.iplsin.sbcglobal.net. [76.219.158.219]) by mx.google.com with ESMTPSA id hi8sm40958185igb.8.2014.05.06.11.22.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 May 2014 11:22:34 -0700 (PDT) Message-ID: <53692867.4060305@breisch.org> Date: Tue, 06 May 2014 18:22:00 -0000 From: "Chris J. Breisch" User-Agent: Postbox 3.0.9 (Windows/20140128) MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Microsoft Accounts (was Re: Problem with "None" Group on Non-Domain Members) 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> <20140506171626.GZ30918@calimero.vinschen.de> In-Reply-To: <20140506171626.GZ30918@calimero.vinschen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00097.txt.bz2 Corinna Vinschen wrote: > 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. >> 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? Yes, that makes complete sense. Thank you again. -- Chris J. Breisch -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple