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:reply-to:subject:references:to:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=dnP6RL9qNvdsBhdX
	KshHkwNjpLM7IhM6ObbXIp3fd3X9+ZmO7MtXHsiUCMve2nsBfo8eAP5AbG3surj0
	AkOpdzA+lHrE8ARr9GrsqeTiJXSN+MJnMBG/hqy5xIiLuYBGXc8HSocDoOidax5R
	qWXG3wrFrrNIT+/ZzyXj5GCsBhk=
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:reply-to:subject:references:to:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=tsbOQppaaVfUKsiPEi7gYR
	pbGh8=; b=yqlNrHxqQxFTZz0BIZ73NOY0HxFm9Y/0mYIdm0uple27eAp8+Ay7EO
	wVFshJ2/nGLCXw3acZY71risagq/z2ckAxvPkkv3MHOdwGIV8x+dYkxWNFzw2aAh
	1tBHieCMAdEEP/ls0yhNvoq13tZAl6g+5/xrd6z2aJOunfrA+VQSM=
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=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=creat, Moss!, moss!, Hx-languages-length:999
X-HELO: csmail.cs.umass.edu
Reply-To: moss@cs.umass.edu
Subject: Re: Permissions change concern
References: <5712F224.7070308@cs.umass.edu> <20160418101803.GM24565@calimero.vinschen.de> <5714DDA9.3030002@cs.umass.edu> <1783109831.20160418165356@yandex.ru>
To: cygwin@cygwin.com
From: Eliot Moss <moss@cs.umass.edu>
Message-ID: <5714FF94.7000009@cs.umass.edu>
Date: Mon, 18 Apr 2016 11:39:00 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
MIME-Version: 1.0
In-Reply-To: <1783109831.20160418165356@yandex.ru>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 4/18/2016 9:53 AM, Andrey Repin wrote:
> Greetings, Eliot Moss!
>
>> 1) If a directory says:
>
>>     default:users::rwx
>>     default:group::rwx
>>     default:other:r-x
>
>>     and my umask is 022
>
>>     when I create a new file by "echo test > foo.bar", foo.bar's
>>     perms are 644, not the 755 I would expect.
>
> Why? I'm totally expecting 644 on a FILE.
> +x never set by default for files.

Ok, I concede this one, since it works as you describe on a RedHat Linux system.
The mode used in the open/creat call reduces the permissions.

>> 2) If the directory has g+s set (visible from -s- in the flags shown
>>      by getfacl), the directory's group is Cygwin, and my primary group is moss,
>>      then the file gets created with group moss, not group Cygwin (which is
>>      what g+s is supposed to mean, right?)
>
> If "Cygwin" group is part of your token, I would expect Cygwin too, in this
> case.

Yes, it is part of the token, and is listed by the 'groups' command.

Regards -- EM

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

