www.delorie.com/archives/browse.cgi | search |
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=QOOI/+G5lybtGbeQ | |
gHRcfVbBrdBQtMiyk0UchALlT4+nQLjKH9cxjoTcWuJXfrBp8Ecm7s4U86pcXGJR | |
lujMxfHEgN4f7qglI+qRxftWU8H2732fpCPjyGIBkin+dnyci1cY4a0wL4XT+gl2 | |
BYKGvEdpHsLYOLOg77wiuSdz1c4= | |
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=Jyg22pPUB4xsvL5uurjEUT | |
AEjlY=; b=STBkoL9cKrRthJi8fvPkgKvsm1KVEMJNmIhOAhGUiqmDUblpsR/Ais | |
yHd2G9gCVF6JMuhobVeA52CTtDGiC8FW0EDQlrwhlZylSuQOSk8VV/s/hBlw9JG6 | |
Wz4PBOgBNGRbpH0AF55wcD/rOOWnSr2fwCYUPHAmzptzxzSd9WTN0= | |
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.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=convinced |
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> <5714DDA9 DOT 3030002 AT cs DOT umass DOT edu> <20160418185553 DOT GB31378 AT calimero DOT vinschen DOT de> |
To: | cygwin AT cygwin DOT com |
From: | Eliot Moss <moss AT cs DOT umass DOT edu> |
Message-ID: | <5715448F.8080204@cs.umass.edu> |
Date: | Mon, 18 Apr 2016 16:33:19 -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: | <20160418185553.GB31378@calimero.vinschen.de> |
X-IsSubscribed: | yes |
On 4/18/2016 2:55 PM, Corinna Vinschen wrote: > On Apr 18 09:14, Eliot Moss wrote: >> On 4/18/2016 6:18 AM, Corinna Vinschen wrote: >>> On Apr 16 22:17, Eliot Moss wrote: > Your example looks like 775. But even then, the actual permissions > depend on the mode bits given to the open(2) call, which are usually 666 > in this echo example. The resulting perms should be 664. Thank you -- I am convinced and agree, and that is what I get. > Cygwin also takes the umask value into account if the newly created > ACL only contains default POSIX permissions. That's not quite correct > in terms of POSIX 1003.1e draft 17, but in contrast to Linux, Windows > directory ACLs practically always have default ACEs, so we have to > compromise a bit, or umask just has no effect at all. I fixed a > problem with the permssion handling in case a mask value is present, but > that shouldn't matter in your case. > >> 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?) > > There was still another bug in the same code snippet which disallowed to > set the special POSIX bits S_ISVTX/S_ISGID/S_ISUID under some > circumstances, but apart from that what you describe works for me if the > bit is set in the parent dir and the parent dir inherits entries. > > But this only works if you create the file with a Cygwin executable and > the parent dir has inheritable ACEs. > > I uploaded another snapshot to https://cygwin.com/snapshots/ to make > sure the aforementioned bug can be tested as well. Please check the > latest snapshot again. > > However, if the s bit (aka S_ISGID) doesn't quite work as desired, I > have to defer any solution (if possible) until after my vaca. The g+s bit now works as I hoped/expected. Thanks! E -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |