delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/12/22/08:20:45

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:mime-version:content-type
:content-transfer-encoding:date:from:to:subject:in-reply-to
:references:message-id; q=dns; s=default; b=Xcqg1s/GRCxQkqvc35NU
lNDzyrkUBK8r3JzHalCOdU0kjNEQYRXDwa+M+mJ4c7j664TvqBwoVRFYlwz8Da7S
NoxA+DEDsX/g1WxQ009Vk9Sws4DPQNJS5dM6T1mP2Wrets57+vl2sa9uaeX+zE/s
kR1hFfHg2pEGTBlirj7/VgA=
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:mime-version:content-type
:content-transfer-encoding:date:from:to:subject:in-reply-to
:references:message-id; s=default; bh=1Ks1CZAnZPBtiEUL66DKXgr23J
0=; b=lU/iDh536tBxjX9XiPQka5jbfPJh1JkI27dUodGeL7feotmPPg6YFXxvF6
fSXjS+5vynGL0K8pn29/8Z/kHQCefyHzrRytmotsHFCpItKbFrZqCC/ytPkXlIRR
LTSsRtmJZ6inTvL3g+Q/WIIdVhtwq0xCSSGDHauNaGF8bbZj4=
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=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1746, calculated, H*UA:Webmail, OPTIONS
X-HELO: lb1-smtp-cloud6.xs4all.net
MIME-Version: 1.0
Date: Tue, 22 Dec 2015 14:20:23 +0100
From: Houder <houder AT xs4all DOT nl>
To: cygwin AT cygwin DOT com
Subject: Re: setfacl(2.4.0.15): for next year !!!!! continued (2)
In-Reply-To: <5eb15a91b67658daba604310dcaa20ee@xs4all.nl>
References: <6ea00be43c852b42e0e59adcb23d0004 AT xs4all DOT nl> <20151221172503 DOT GK4034 AT calimero DOT vinschen DOT de> <5eb15a91b67658daba604310dcaa20ee AT xs4all DOT nl>
Message-ID: <2e10f8b8ba94d639cc2a82918da34329@xs4all.nl>
X-Sender: houder AT xs4all DOT nl (Bsgm45mfvIUz6wTj+Crx7Q==)
User-Agent: XS4ALL Webmail
X-IsSubscribed: yes

On 2015-12-22 12:37, Houder wrote:
> On 2015-12-21 18:25, Corinna Vinschen wrote:
>> On Dec 21 17:30, Houder wrote:
>>> Hi Corinna,
>>> 
>>> For next year !!!!! (posted as a reminder) ... See below.
>> 
>> Next year?  Nope... see below.
>> 
> 
> Hi Corinna,
> 
> Thank you for all the hard work you do ...
> 
> As an encore (for this year though ;-). See below (Cygwin-2.4.0-0.16). 
> <==== 16
[snip]

> 64-%% setfacl -m m:rwx bar.txt
> 64-%% getfacl bar.txt
> # file: bar.txt
> # owner: Henri
> # group: None
> user::rw-
> group::r--
> mask:rwx <==== yes, as requested by me, but ...
> other:r--
> 
> 64-%% ls -l bar.txt
> -rw-rwxr-- 1 Henri None 0 Dec 22 12:21 bar.txt
> 
>  - does this output make sense?
>    (no access to Linux at the moment; cannot verify)

To make it clear what I meant by 'but reading setfacl(1)' (previous 
post):

 From setfacl(1):

OPTIONS

  -n ...

(description)
The default behavior of setfacl is to recalculate the ACL mask entry, 
unless
a mask entry was explicitly given.

(my interpretation)
  - unless a mask entry with "less privileges" was specified (i.e. given) 
...
    (i.e. the mask must still be (internally) recalculated , using the 
rules as
     stated further down)

What I mean to say, is:
  - the mask entry should be the calculated mask, unless the specified 
(i.e. given)
    mask takes away one or more of the privileges of the calculated mask.
    if so, the mask entry should be the calculated mask, save for the 
privileges
    that have been taken away ...

(description continued)
The mask entry is set to the union of all permissions of the owning 
group, and
all named user and group entries.
(These are exactly the entries affected by the mask entry).

Regards,
Henri

=====

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