X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=foygLL7p0znja3XnUPX/Jt++qH6BHwfX0cRZAuD10Vn
	hXaxcTE9m8Vk/ecSOgx+4ir3VT2XKivKFhAsRvFs/imoXpkbexroZFuZlPv6nwg4
	J3PpA5L2HKoFwwX60RaEKHdAXn0JknFeQrgG9v4kVBVNG/Vwd/72OMe0DPLa4lL8
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=YSsn7upQU25dAkmeu0R9QlKjSrA=; b=qeWsrXuCN+U+belcu
	YPhZd+SYZ4Y4xdjCqdpuCB945uq1nUvUTYRY2YunFq/7fBg4tf+8OpJEGCvDuyYA
	Q3wprhK1evf94vOvhstxAJ06KQD8owuX62Ob2+R/JibzbLmkcjWzxP7kdXEp5bfx
	uByph96MWOycFj0+4ymmG/Nvlc=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-ig0-f181.google.com
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=ItDlXe4Rz+I03F3qZ/30ttmLT6C/FVYa71H0vH423bs=;        b=NxGYS0tuqdoc+Laxf5qONroFEyj8Hu78RlBMaJZZ59k7AtDSCYh1MgsLuxfsoDU1uK         gEhUw1+iDTFDE6rE6gBptN99n7phA99OaTPBjlalzbZs3en/IBWRDotdk8aO+JI9QYFC         PXG350Wq84NlSdug7aPAFoiqywc9A/yY/NTNDEhiCX6yQt6n1JFuoRWtOj6DijWdMDlW         hFWQaiskJiNPCi4iDprrsNUOgEI19+1FMEEJKpy7woI3cRxpKrg4AqJ1ZsTvsrpwR9c1         kI3KBkXQpn306S1eZdTI5JKKh7PISzVwU+ZJ3Z161D+hGgZvZQWlgpYly7biRwuxzXaf         FTFQ==
X-Gm-Message-State: ALoCoQmNxyBqfEsOLObzl1tmf0n1c/RO1DROqhSt0twvwTAVpSghcL8XraL2yYIIhUb1iCp57rXJ
X-Received: by 10.50.22.37 with SMTP id a5mr23957993igf.30.1399299423370;        Mon, 05 May 2014 07:17:03 -0700 (PDT)
Message-ID: <53679D5C.5030209@breisch.org>
Date: Mon, 05 May 2014 10:17:00 -0400
From: "Chris J. Breisch" <chris.ml@breisch.org>
User-Agent: Postbox 3.0.9 (Windows/20140128)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Problem with "None" Group on Non-Domain Members
References: <536796E4.2090009@breisch.org> <20140505135928.GK30918@calimero.vinschen.de>
In-Reply-To: <20140505135928.GK30918@calimero.vinschen.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Corinna Vinschen wrote:
> On May  5 09:49, Chris J. Breisch wrote:
> As far as Cygwin tools are concerned, the None group is just a normal
> group like any other group.  The behaviour you're observing looks a bit
> like either your group file is not ok, or you're testing this with the
> noacl mount option.  Or, probably more likely, you're suffereing from
> the default ACL settings propagated from the parent directory.
>
> When Cygwin sets the POSIX permissions, it does exactly the same thing
> for the primary group in your token, whether it's None or any other
> group.
>
>
I understand what you're saying, but I don't think the behavior agrees 
with your statements. I've tried this on a couple different machines, 
and the behavior is identical. No matter what I do, if a file is created 
with the "None" group, the group file permissions are always identical 
to the owner file permissions. I've tried playing with my umask and with 
directory sticky bits. It doesn't matter. In the example above, my 
parent directory is rather oddly, Chris.Users 000. The current directory 
is Chris.None 775.

$ ls -ld . ..
drwxrwxr-x+ 1 Chris None  0 May  5 10:05 ./
d---------+ 1 Chris Users 0 May  5 09:35 ../

And again, changing the permissions of the directory doesn't accomplish 
anything:

$ chmod 755 .
$ ls -ld . ..
drwxrwxr-x+ 1 Chris None  0 May  5 10:08 ./
d---------+ 1 Chris Users 0 May  5 10:08 ../

Changing the group for the directory doesn't help either:

$ chgrp Users .
$ touch bar
$ ls -l bar
-rw-rw-r-- 1 Chris None 0 May  5 10:10 bar
$ chmod 600 bar
$ ls -l bar
-rw-rw---- 1 Chris None 0 May  5 10:10 bar
$ ls -ld . ..
drwxrwxr-x+ 1 Chris Users 0 May  5 10:10 ./
d---------+ 1 Chris Users 0 May  5 10:08 ../

Taking the example one step farther:

$ chmod 600 bar
$ ls -l bar
-rw-rw---- 1 Chris None 0 May  5 10:10 bar
$ chmod 400 bar
$ ls -l bar
-r--r----- 1 Chris None 0 May  5 10:10 bar

And changing the group from "None" to anything else always fixes the 
permission issues. chmod and umask suddenly start working as expected.

-- 
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

