delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/01/24/09:35:33

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 326693858C20
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1706106931;
bh=GdudXwRm4ZVvcMC5aGnkVZ1LCGWUcCeyoqAxXUoaiwM=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=Fz3V3xO3Uk523u7ry5/zCl03hEl7EWDL+g0sQiAeqjT65CKmFIRVlDsd8r76846yk
8psA5jGRxGlCGbVFYEIX5d08IyutV8UOfE5E+980Wb2psrCCJUfbRG7STDIodqF4eL
tIV9GW0fUZi3GzhJ0x0T4dulpvTuuTzHLYmsS8ms=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8FE513858D1E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8FE513858D1E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706106909; cv=none;
b=p963fJopoYsc2TKflyuKYeK7edywXK3GUBAuz+Gr9264O/gRVbTDIdwCayW1yYIXvHRVVedeXIBfN0xJR4Dxa0UMaHxidu1qyttnorE52vs8YNwoK62aFgK9y3FD7jmsp7hKHz6hKnI19FsWPmoeYSf8lvMnRgegXizRTuMJmps=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1706106909; c=relaxed/simple;
bh=lrZXHCZAScV/m21vFBmU7IAuadQIGxqb/guue5fVv4Y=;
h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version;
b=vGD4NR7PdfeDOZasmK2bvUtaSxu/MyK4SCZNAU3uTTjrgY30Wp57OfIzE83s0LaiTvjU8oZIRrFHCIZbaO6qgtqWmLBnGCgSduLtI8UZEuzf8wb66anR0x3EW1P1Vgeoe+KJHE7QvGMCzgp4oRjzGt3m4eHWSXHkrlrRFcrzgDQ=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Yandex-Fwd: 1
Date: Wed, 24 Jan 2024 17:32:24 +0300
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <1741300315.20240124173224@yandex.ru>
To: =?utf-8?Q?Vincent_Rivi=C3=A8re?= <vincent DOT riviere AT freesbee DOT fr>,
cygwin AT cygwin DOT com
Subject: Re: Wrong NTFS permissions
In-Reply-To: <74c605c6-94eb-4fd5-a183-a2bf18f45b65@freesbee.fr>
References: <7157367c-cd10-4738-8448-4b3c862ab13b AT freesbee DOT fr>
<4a70e71e-f882-46d1-b359-2d00b38e6047 AT gmail DOT com>
<74c605c6-94eb-4fd5-a183-a2bf18f45b65 AT freesbee DOT fr>
MIME-Version: 1.0
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
LIKELY_SPAM_BODY, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS,
TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
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: Andrey Repin via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Andrey Repin <anrdaemon AT yandex DOT ru>
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 40OEZWSn000556

Greetings, Vincent Rivière!

> On 24/01/2024 at 04:14, Marco Atzeri via Cygwin wrote:
>>> $ cd /cygdrive/h/
>> > what is H ?

> It is H:, a local NTFS partition.

>> Use csih package for more info on your remote package

> $ /usr/lib/csih/getVolInfo /cygdrive/h
> Device Type        : 0x07
> Characteristics    : 0x00020020
>    FILE_REMOVABLE_MEDIA              : FALSE
>    FILE_REMOTE_DEVICE                : FALSE
> Volume Name        : <***>
> Serial Number      : ***
> Max Filenamelength : 255
> Filesystemname     : <NTFS>
> Flags              : 0x03e706ff
>    FILE_CASE_SENSITIVE_SEARCH        : TRUE
>    FILE_CASE_PRESERVED_NAMES         : TRUE
>    FILE_UNICODE_ON_DISK              : TRUE
>    FILE_PERSISTENT_ACLS              : TRUE
>    FILE_FILE_COMPRESSION             : TRUE
>    FILE_VOLUME_QUOTAS                : TRUE
>    FILE_SUPPORTS_SPARSE_FILES        : TRUE
>    FILE_SUPPORTS_REPARSE_POINTS      : TRUE
>    FILE_SUPPORTS_REMOTE_STORAGE      : FALSE
>    FILE_RETURNS_CLEANUP_RESULT_INFO  : TRUE
>    FILE_SUPPORTS_POSIX_UNLINK_RENAME : TRUE
>    FILE_VOLUME_IS_COMPRESSED         : FALSE
>    FILE_SUPPORTS_OBJECT_IDS          : TRUE
>    FILE_SUPPORTS_ENCRYPTION          : TRUE
>    FILE_NAMED_STREAMS                : TRUE
>    FILE_READ_ONLY_VOLUME             : FALSE
>    FILE_SEQUENTIAL_WRITE_ONCE        : FALSE
>    FILE_SUPPORTS_TRANSACTIONS        : TRUE
>    FILE_SUPPORTS_HARD_LINKS          : TRUE
>    FILE_SUPPORTS_EXTENDED_ATTRIBUTES : TRUE
>    FILE_SUPPORTS_OPEN_BY_FILE_ID     : TRUE
>    FILE_SUPPORTS_USN_JOURNAL         : TRUE
>    FILE_SUPPORTS_INTEGRITY_STREAMS   : FALSE
>    FILE_SUPPORTS_BLOCK_REFCOUNTING   : FALSE
>    FILE_SUPPORTS_SPARSE_VDL          : FALSE
>    FILE_DAX_VOLUME                   : FALSE
>    FILE_SUPPORTS_GHOSTING            : FALSE
> SectorInfoFlags    : 0x03
>    SSINFO_FLAGS_NO_SEEK_PENALTY      : FALSE
>    SSINFO_FLAGS_TRIM_ENABLED         : FALSE

> By the way, I found a solution:
> setfacl -s u::rwx,g::r-x,o::r-x,d:u::rwx,d:g::r-x,d:o::r-x myfolder

I suggest you don't do that. Better just leave permissions to the system.

> After that, permissions work as expected inside "myfolder" and new
> subfolders. Even on H:. But I'm not sure to understand why. I would have
> expected that a simple chmod on myfolder would have be enough, instead of
> the obscure setfacl.

setfacl is far from obscure. chmod was never a useful tool for complicated
permissions control.
But to the both of them you better not use either outside the Cygwin root
directory.
Change the cygdrive entry in your /etc/fstab to contain noacl option and your
life suddenly become easier.

>> none /cygdrive cygdrive noacl,binary,nouser,posix=0 0 0

> Anyway, in my initial report, the "getfacl: b: Invalid argument" message
> looks really abnormal.

It looks strange, that's right. May be icacls would shine some light.
But given this is not a Cygwin root, it's better to not enforce Cygwin
permissions on it.


-- 
With best regards,
Andrey Repin
Wednesday, January 24, 2024 17:25:40

Sorry for my terrible english...

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