www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/06/16/16:58:52

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 55GKwpo44166839
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 55GKwpo44166839
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=CPnrs0QK
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ACC08384AB7F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1750107529;
bh=MpvAfyHCwwDubjOCY2pNhyStPDrskBS8orT9v+nYuNQ=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=CPnrs0QKUT9s7KGDXFZMMNNcQHQQco2qllM0e3y29N2KlyCElpJ8gP9JQ+WmLtk10
d6CJSwx6lqyqCB5Pvabk8vdH4J6cGGnmpsyCASmQGzn7kHti5fBJMnhavagzQPe7kj
L5uAUlvFKETGXaVqNbKEMq+uyvvw3XVkZVg+qVHw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1CCA6384D14E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1CCA6384D14E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1750107468; cv=none;
b=Ks+/rlZzbf1b5r6hpfaAtWFBDplKx1spm079OA2pzszVfx44l7qQUlXKK+px36C4+0bD5FFf749fPlg5aDTrcGC89okCQ7guGiVF+uaDQIkxz4wXpuRwFErCOGExqlqjFidhkvyVPiABT8nFWlj/C53xDyYL5Kzkxk3VABqLmpM=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1750107468; c=relaxed/simple;
bh=AnduvdR61wh0TAeCyt8HaOd/bwyd6qYkooLvuFhi6l8=;
h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
b=hYrAEB7jCAf5YIi8xBhdXQZSMXZdiFqHL6ZuysLX/+XnYPYV/rh1+UOVGTPJ1Hegj9B/p7VPsQ3px+0a9OG0rqLi0xpL4ER2vEQmA6xy/XyG34nBJKnqhcdwXkx2nTJC79K4zaeK1O7LJg0Am84uSGFsKcwgsa/YwUsItonrn2o=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1CCA6384D14E
Message-ID: <2d25692d-d659-47da-8e4f-cd60d4b0c727@SystematicSW.ab.ca>
Date: Mon, 16 Jun 2025 14:57:44 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: /usr/bin/setfacl is broken in 3.7.0-0.127.g2029784e05d9
To: cygwin AT cygwin DOT com
References: <CAPJSo4Ur9+i_LtHcxrMNKuFzXDmV-XtxY+-7Xh=0SY0o1C3+wA AT mail DOT gmail DOT com>
<87219f19-5498-4cf8-9279-1f2993845034 AT SystematicSW DOT ab DOT ca>
<CAPJSo4UjOVbQ9_CHXxeThNWbuXci6mx7c4r=0HvAf-0BCR2=tw AT mail DOT gmail DOT com>
Organization: Systematic Software
In-Reply-To: <CAPJSo4UjOVbQ9_CHXxeThNWbuXci6mx7c4r=0HvAf-0BCR2=tw@mail.gmail.com>
X-Rspamd-Queue-Id: E514620013
X-Stat-Signature: chjpa5qau4ne9dbicdfsqe6jfaors8zx
X-Rspamd-Server: rspamout07
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX18dDjo5R9j9bmIsdljWgkQ47TEZJZo6NaU=
X-HE-Tag: 1750107465-553717
X-HE-Meta: U2FsdGVkX1/V+WmgUsyOqf4Lr1FFWYemmzl5EeGSuE+BUW8MWo/rWHSWaabAQai/jb+gYYb6InFjqhV/RYzx5LdVM+QIV83+Dya4Q0Zy0R4xC36Zvrsw6XDhjJucBA+FkjJZRIIOchuTFlgjsQ/dmEDmrIUFqSEe+n5kmbWNII6PqzHFqXKhTdxdexeL3YN+Ho9eyCmiF+ECfteTxU08xIGMUMcvp1VZAr0JiYg5u2VHMWFGUjz/PctaAU7YOQXYAXcVLm1XzcVRMgAxrHh5zjfESupC8P6aVziJ9BqlnMpvNx9yMJwqLt+/fiR9TkaEjz9kkfuzS/5Dxmi1f9Thhwct4BsTzGOkH/ulS70Ao8Dae7Kla1jXdVDv+MF+pte0s6qMtKWKC5LFn2GznagmSZuVX/VgAJLjg+OzExQwb2DJBZvYKOYTyyUkgGYtluMbLhq1F67ZHXn7IgAPBpC/9Nt3Wfeczib9arPoqJjgzyYqInI21+Vuu+O8l3wEl6rB06HxxzVjVCrywzb4TuSG7DVhveNNUM9SgUz5uP/f4jUzsUGlBLgH6jbn7vvoy43meO5M9bWB9OCfdoBvFFIzmErgIjMap1TRHT3lf0Z8E+wcqN08FgiH6v5WN99mTL6TTTSPKdqdm9/20sCFE8aLbA==
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 55GKwpo44166839

On 2025-06-16 03:17, Lionel Cons via Cygwin wrote:
> On Fri, 13 Jun 2025 at 21:52, Brian Inglis via Cygwin <cygwin AT cygwin DOT com> wrote:
>>
>> On 2025-06-13 06:09, Lionel Cons via Cygwin wrote:
>>> /usr/bin/setfacl is broken in 3.7.0-0.127.g2029784e05d9
>>>
>>> my testcase:
>>> lionel$ uname -a
>>> CYGWIN_NT-10.0-19045 halcyonrenard17 3.7.0-0.127.g2029784e05d9.x86_64
>>> 2025-06-10 12:15 UTC x86_64 Cygwin
>>> lionel$ mkdir nfstmp1
>>> ionel$ setfacl -m g::rwx nfstmp1
>>> setfacl: Permission denied
>>> ionel$ setfacl -m g:None:rwx nfstmp1
>>> setfacl: Permission denied
>>>
>>> This was working in Cygwin 3.5
>>
>> No changes have been made to the utility for five years,
> 
> Are you sure? Isn't this tool part of coreutils?

$ cygcheck -f /usr/bin/{g,s}etfacl
cygwin-3.6.1-1
cygwin-3.6.1-1

Apparently mainly based on:

	https://man.freebsd.org/cgi/man.cgi?query=setfacl&sektion=1

	http://www.trustedbsd.org/acls.html

also Linux uses:

	https://man7.org/linux/man-pages/man1/setfacl.1.html

	http://savannah.nongnu.org/projects/acl

	http://savannah.nongnu.org/bugs/?group=acl

	"ACL File Utilities"

as we have had discussions about man pages missing from the man-pages-linux 
packages and sources for alternates we could provide, and whether that would be 
desirable and adequate.

>> but a lot of changes
>> have been made to the DLL since 3.5.
>>
>> Could you please install current stable cygwin 3.6.3, retest and report,
> 
> lionel$ uname -a
> CYGWIN_NT-10.0-19045 halcyonrenard17 3.6.3-1.x86_64 2025-06-05 11:45
> UTC x86_64 Cygwin
> lionel$ setfacl --version
> setfacl (cygwin) 3.6.3
> POSIX ACL modification utility
> Copyright (C) 2000 - 2025 Cygwin Authors
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> ## testing with a file:
> lionel$ rm -f myfile && touch myfile && setfacl -m g::rwx myfile
> # works
> 
> ## testing with a dir:
> lionel$ rm -Rf mydir && mkdir mydir && setfacl -m g::rwx mydir
> setfacl: Permission denied
> 
> So in Cygwin 3.6.3 setfacl for files works, but not for dirs

Thanks for doing that.

One thing we have to watch for is to ensure that DACLs (Default ACLs) are set on 
directories so files and subdirectories are accessible, for example:

	dacl=d:u::rwx,d:g::r-x,d:o::r-x
	...
	setfacl -m$dacl $dir

although you would normally also set regular ACLs at the same time to be sure.

So your directory ACLs depend on its parent's DACLs, but there is still an issue 
there.

I too get:

	$ setfacl -m g::rwx test
	setfacl: Permission denied

but:

	$ chmod -c g+rwx test		# works
	mode of 'test' changed from 0755 (rwxr-xr-x) to 0775 (rwxrwxr-x)
	$ setfacl -m g::rwx test	# works but changes nothing
>> to try
>> and narrow down the issue occurrence to changes in major version 3.6 or 3.7, or
>> better to minor versions if you have the space and time?
> 
> How can I install each Cygwin minor version (not just the Cygwin
> *.dll, I mean EVERYTHING including dependencies)?

Maybe just cygwin (DLL and utilities) package 3.5.7 and 3.6.0 if you have time?

> P.S.: Testing /usr/bin/setfacl.exe is not part of the CI, right?
Apparently not yet for cygwin ;^>

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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