From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3164 invoked by alias); 5 May 2014 14:17:23 -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 3150 invoked by uid 89); 5 May 2014 14:17:21 -0000 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 Received: from mail-ig0-f181.google.com (HELO mail-ig0-f181.google.com) (209.85.213.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 05 May 2014 14:17:19 +0000 Received: by mail-ig0-f181.google.com with SMTP id h3so1488380igd.14 for ; Mon, 05 May 2014 07:17:17 -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=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) Received: from [10.10.15.33] ([174.47.110.34]) by mx.google.com with ESMTPSA id g1sm27949680igt.14.2014.05.05.07.17.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 May 2014 07:17:02 -0700 (PDT) Message-ID: <53679D5C.5030209@breisch.org> Date: Mon, 05 May 2014 14:17:00 -0000 From: "Chris J. Breisch" 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 X-SW-Source: 2014-05/txt/msg00061.txt.bz2 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