www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/18/09:14:56

X-Recipient: archive-cygwin AT delorie DOT 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=sa9TvV2j9XdxMfhu
VT8mHAVUX4FLUFOfMBaw+33Y+O8m+/CIdeX79kCzXxFR5dOuft/xRDG3T5xirTId
QAOGZG9cNS+Gb7RwM8MYs+f4LWxKqfE2tGhA8OeyfEO+72TC1OXivPGKBBKI7/+k
ERt6bIw0//L32iZ6p7gnmuNMRsE=
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=8KBiJyww9mhQzfdhKF/ysD
NsDm0=; b=m2kweW2eerLMgc4ZEicUX4Prbw0mh8yv463a3WJaBkiheNVDC4FMWL
9mVAI4bNtNOhb1WpYwbb1pxO5B23+hEKhEwfnmoxxZ5Xpa8Pkssk9BZ0Rtj/PjG5
boaMpjOgHAX0/JKdnePfAiU8dQeKWsfbk81FC+KpAAHzRWp0wwDVA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=dear, Dear, pain
X-HELO: csmail.cs.umass.edu
Reply-To: moss AT cs DOT umass DOT edu
Subject: Re: Permissions change concern
References: <5712F224 DOT 7070308 AT cs DOT umass DOT edu> <20160418101803 DOT GM24565 AT calimero DOT vinschen DOT de>
To: cygwin AT cygwin DOT com
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <5714DDA9.3030002@cs.umass.edu>
Date: Mon, 18 Apr 2016 09:14:17 -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: <20160418101803.GM24565@calimero.vinschen.de>
X-IsSubscribed: yes

On 4/18/2016 6:18 AM, Corinna Vinschen wrote:
> On Apr 16 22:17, Eliot Moss wrote:
>> 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).
>> [...]
>> 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?
>
> It's broken.  I added a small code snippet in 2.5.0 which was supposed
> to avoid writing a NULL SID ACE in case the POSIX permissions are simple
> enough.  The condition under which to write the NULL SID ACE was...
> uhm... not well thought through.
>
> I applied a fix and I built new developer snapshots available on
> https://cygwin.com/snapshots/.
>
> Please give'em a try.  Since I'm going on vacation end of this week,
> I intend to provide a fixed 2.5.1 ASAP.

Yes, that's better.  I still have two confusions, though:

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.

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

Thank you for your help!   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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019