delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/01/24/10:38:31

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 50OFcUan388526
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 50OFcUan388526
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=MFCZBOOk
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A46B3857729
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1737733107;
bh=751DS4iAAW7dc58YDnr6b9ee08kO0WvvviHw+rW7Zx0=;
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=MFCZBOOkpG92GApEJKKc0CxmYzU4sxLsse44Tvrp50rTRGg2oUZiH302eW14ceNkW
SH3CV2TX/0iFoXzdq9DaqIkz7iT0pDR8hXn5YzbGIH6d/Wf5GePbUM+2VBSkoS2Bcp
5XARFiBRffc00Anfkw6X4/Nyo8zhuhPDMy4tz1zA=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DB293385780D
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DB293385780D
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737733006; cv=none;
b=QI2nGvGCsVYArg9f88eXbBoEta7UaPgoFE4OP7lgNjXOSmQ/zJeCfrE2OiiJJPLBux0kkj4pXvHUe0GHb64CmdszFGlZX6v7V9itYimi9y15LGZNi6ijnhBvLRmjf8EwfbA4DfprLr7Pf+zm/8x+nmqODrvlPYGTXhs9HWQXAxU=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1737733006; c=relaxed/simple;
bh=Vk5cZy0gitFDbgXpYYPsbCR3cdgj+z7bEHD1qkrXkwE=;
h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
b=l/VOxOngIRlVUjwa9MYhVp7Vw0ZjKakvfAL/a19g54NIoqtP+WV5WGRzlkSfGIPx44wsHW6v9MJqRDCsKV8QiA7Hx0Ui6srgaVA1G3KPXqO4+M/eRobKDTNI1vBCC3wqJeADm1FMArxOvpxaQOIwg9VaVTiOeof52osm9AL+Ex0=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB293385780D
Message-ID: <e5da44a4-15ca-4480-8c64-4cbb0ca66745@SystematicSW.ab.ca>
Date: Fri, 24 Jan 2025 08:36:43 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Cygwin rsync changes (acl) permissions, even when not asked to?
To: cygwin AT cygwin DOT com
References: <2e1ca179-aec2-420f-8a57-50e59e2b1761 AT emmenlauer DOT de>
<97ddb360-b86f-499a-8116-f72b538ca7fc AT gmail DOT com>
Organization: Systematic Software
In-Reply-To: <97ddb360-b86f-499a-8116-f72b538ca7fc@gmail.com>
X-Rspamd-Queue-Id: F191B3C
X-Stat-Signature: 9ubcsy39uxqbmn6cqto9n4wd3q1so7hk
X-Rspamd-Server: rspamout03
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX1+u9Gobg9mMv7bz3BSBWLVI98lweNAEq1w=
X-HE-Tag: 1737733003-869848
X-HE-Meta: U2FsdGVkX18/p0a7XECIYqAUyfW284xXUxvIbDn+yx7/f4IEWFvpK1U30QVV6b0JBU8mtBBDRyhcnpsrxKPX9Lsoyuu7dLqv068x6pXk40en+ZhsGbxSYB5uwQiQMrN0RN5/V4qc2BrWw511HBw9j1DvZTgNoffHatgK6OSp/O2qNtjhxyostWQB18yD2nFdD9kIBrOg1oxw70BaPcwoITZDjKswTzMRaaU+ux6bMl5gIsIaevwVJdPS8Mwkrz7V+eSgmq6IAUlsE5GpbxFJytro86r/ijYmzG+AE76jfElQwgubh5U+CLXwaiQjlS3ZxiJTUE+/7sQxZmgZkxN4jT5tz5rF3fqJAKgVoKhcY6go6CV4cAasjESeIJHtX74FaygpuQpLkxWUbmnS0DNtf/WOYhF71cGPMDOWrdNKgYztAdyqTEMD7Q==
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 50OFcUan388526

On 2025-01-24 02:23, Marco Atzeri via Cygwin wrote:
> On 24/01/2025 09:32, Mario Emmenlauer via Cygwin wrote:
>>
>> Dear All,
>>
>> There is an an issue that plagues me when using git in Cygwin.
>>
>> I have two developer machines, one with Linux, and one with Windows. On
>> the Windows machine, when I clone sources with git, everything works well.
>>
>> However, when I then use rsync to copy changes from the Linux machine to
>> Windows, the file permissions change on all files! In turn, git complains
>> about a new executable permission. And chmod fails to restore the previous
>> state.

Sound like it is adding default Windows permissions with +x!

>> Currently, the only way I found to restore a useful state, is to remove
>> the whole directory, and clone again from git!
>>
>> Here are the details:
>> I'm using rsync options --verbose --recursive --delete which in my eyes
>> should not modify permissions. I clone with rsync over the already existing,
>> unchanged files from git, so there should be anyways no need for rsync to
>> re-transfer or modify the files.

Why clone a git repo with rsync when you can just use git from Linux to Windows?

>> The directory in question is a subfolder on the C: drive, which is an
>> NTFS-formatted NVMe. I created the parent folder as a normal user, and did
>> not apply any special permissions. In fstab, I leave default Cygwin options.

Created parent and subfolder as a normal Windows or Cygwin user?

>> rsync is version 3.3.0, Cygwin is version 3.5.5-1.

Are you sure you are running

>>  From acl checks, it seems that rsync would modify only one of the ACLs.
>> The second ACL before is "COMPANY\User:(R,W,D,WDAC,WO)", and after running
>> rsync is "COMPANY\User:(F)". I'm not sure what this means, but even less
>> I understand why rsync performs this change?

> where is located this directory ?

Also what are the parent and subfolder directory paths and ACLs, particularly 
DACLs, from getfacl and icacls?

> Can you provide the cygcheck.out as attachement ?
> see https://cygwin.com/problems.html

I have had some success fixing Cygwin ACLs messed up by Windows programs using 
setfacl -b on directories and files, but I sometimes have to fix up directory 
DACLs using setfacl, then fix up the file ACLs, then permissions.

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