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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=lv9ShduHpTWG6Y4Y
	1L5rL28up4BDQS5JbkoIsJ2FWp0LvAWglsKO/meRLyW3/RbxXMV2SQI/eZpRBTqO
	nVh5zmjItqXKHteTvSVUhzhhu3dd57YLlmAL6/Jl5zzo0FA0JlLcvxsRvSbihNmi
	2letmzV+rvgwygHDiJf/DeyQJeg=
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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=CYRDvSffVN8bdCYyz8HhZv
	hep8M=; b=bCjfO1S71/1I30pu2+N0OpUrNSCzZWcoLNKwwiDSdCexvVaFOX06dR
	F2igFQCRSbBDStuHMqa/vBdMKRCz4WzxzJhHuEr4905lhRPAw7jFTgQDSV1iKgRF
	brnL2i9+CtbiMpDhOf3Wm+Za4CNoh2XMmImVIOxOF4BYOEQX2RV8I=
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=4.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, H*r:sk:postmas, H*x:Home
X-HELO: smtp.ht-systems.ru
Date: Mon, 18 Apr 2016 00:38:44 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <137271635.20160418003844@yandex.ru>
To: Eliot Moss <moss@cs.umass.edu>, cygwin@cygwin.com
Subject: Re: Permissions change concern
In-Reply-To: <5712F224.7070308@cs.umass.edu>
References: <5712F224.7070308@cs.umass.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Eliot Moss!

> Dear Corinna (et al.):  I have set up to use a separate group that I call
> Cygwin for files in my cygwin tree, and in the recent past have been able to
> apply chown, chgrp, and chmod effectively.  With the latest version, chmod
> fails to change permissions, though I can change them with setfacl (a pain).

I may be shooting in the dark, but do try to set "Cygwin" as your user's
primary group.
Instructions how to do so should be around nsswitch documentation.
If I'm not confusing things. Sorry. It was well before 2.0 I fixed my ACL
issues and didn't touched them settings since.

> Here's a sample file:

> moss@Surface$ icacls random-1000k-comp.auto
> random-1000k-comp.auto ELIOT-SURFACE-2\moss:(R,W,D,WDAC,WO)
>                         ELIOT-SURFACE-2\Cygwin:(R,W)
>                         NT AUTHORITY\SYSTEM:(R)
>                         ELIOT-SURFACE-2\Cygwin:(RX,W)
>                         Everyone:(R)

> Successfully processed 1 files; Failed processing 0 files
> moss@Surface$ getfacl random-1000k-comp.auto
> # file: random-1000k-comp.auto
> # owner: moss
> # group: Cygwin
> user::rwx
> group::rw-
> group:SYSTEM:r--
> group:Cygwin:rwx
> mask:rwx
> other:r--

> moss@Surface$ ls -l random-1000k-comp.auto
> -rwxrwxr--+ 1 moss Cygwin 74 Apr 16 15:40 random-1000k-comp.auto


> It may be helpful to see also how the containing directory is set up:

> moss@Surface$ icacls .
> . NULL SID:(DENY)(Rc,S,WD,REA,WEA,X,DC)
>    ELIOT-SURFACE-2\moss:(F)
>    ELIOT-SURFACE-2\Cygwin:(Rc,S,RA)
>    NT AUTHORITY\SYSTEM:(RX)
>    ELIOT-SURFACE-2\Cygwin:(Rc,S,RA)
>    ELIOT-SURFACE-2\Cygwin:(DENY)(S,RD,REA,X)
>    Everyone:(RX)
>    NULL SID:(OI)(CI)(IO)(DENY)(Rc,S,WD,REA,WEA,X,DC)
>    CREATOR OWNER:(OI)(CI)(IO)(F)
>    ELIOT-SURFACE-2\Cygwin:(OI)(CI)(IO)(RX,W,DC)
>    NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(RX)
>    ELIOT-SURFACE-2\Cygwin:(OI)(CI)(IO)(RX,W,DC)
>    Everyone:(OI)(CI)(IO)(RX)

> Successfully processed 1 files; Failed processing 0 files
> moss@Surface$ getfacl .
> # file: .
> # owner: moss
> # group: Cygwin
> # flags: -s-
> user::rwx
> group::---
> group:SYSTEM:r-x
> group:Cygwin:---
> mask:rwx
> other:r-x
> default:user::rwx
> default:group::rwx
> default:group:SYSTEM:r-x
> default:group:Cygwin:rwx
> default:mask:rwx
> default:other:r-x


> Here is umask, group, and identity information:

> moss@Surface$ umask
> 0022
> moss@Surface$ groups
> moss High Mandatory Level Local account and member of Administrators group Cygwin Administrators
> Users INTERACTIVE CONSOLE LOGON Authenticated Users This Organization 
> MicrosoftAccount+moss@cs.umass.edu Local account LOCAL Cloud Account Authentication
> moss@Surface$ id
> uid=197609(moss) gid=197609(moss) groups=197609(moss),405504(High Mandatory Level),114(Local account
> and member of Administrators 
> group),197610(Cygwin),544(Administrators),545(Users),4(INTERACTIVE),66049(CONSOLE
> LOGON),11(Authenticated Users),15(This 
> Organization),68585(MicrosoftAccount+moss@cs.umass.edu),113(Local account),66048(LOCAL),262180(Cloud
> Account Authentication)


> The specific behavior I get is that chmod 644 on the file has no effect on the file's permissions -
> they stay at 774.

> So, has something in cygwin "broken", or is there some setting I should be doing a different way?

> Regards -- Eliot Moss

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




-- 
With best regards,
Andrey Repin
Monday, April 18, 2016 00:36:38

Sorry for my terrible english...


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

