delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/01/24/03:35:46

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 50O8ZjWZ245369
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 50O8ZjWZ245369
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=oQe0f7ZD
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C27093858410
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1737707743;
bh=LpOcPsK1tMQl0RiN0kwqAyxPWkAZG2MpYXr46f6cu/o=;
h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=oQe0f7ZDe9DUNwVLMl14KdwkEXUF76bv79R+Vw0LybyKiB4UU8v4o6mWLrhSw54Cj
fCiopYyAzJ8Jzoa/0NrnsFLhMRfRrUc+VVnEpPAUDEImJMrfhiI3CijtNdkOqpUDxY
OWpu4FItJJW2rJey/EGkQmmFnQ+u0sciaOxDcuaI=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4EC163858D29
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4EC163858D29
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737707713; cv=none;
b=CgxkphMXRti1LEcoyttu7It9jx0GIECWjGyd6smhTMBgL4v5NZgtIyTQGzOp/2+2zvkH5n1fyx1edgyBnXYpKqFTfiYxBCTgw4o0KVN7He03heXGu7lHMbDnPnkTiJzc/gP9wQz5dIKt8qv0/uurqY98DAm+F1NsGv7TMw9CPJQ=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1737707713; c=relaxed/simple;
bh=EpnLkms83FFa4FM9+vHlJr4gK681ULpWZq+rwoVNlB0=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject;
b=cWkLEui3a0qTrF8HWpToQeZ3MitndG4MbTsy3GN/ZBiSuRCR3R7KAEzT6B4cLzw/9e2Ni++Tbqcjbv8Ni5cyK9gbsdE5DYya/ypSNt4fRDO3N8lq927Rz9X3Y7hbk+NrmBkZnDllQSKphk4SxJoGqeygxxrVC5qJHVeEc17plxE=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4EC163858D29
Message-ID: <2e1ca179-aec2-420f-8a57-50e59e2b1761@emmenlauer.de>
Date: Fri, 24 Jan 2025 09:32:55 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: cygwin AT cygwin DOT com
X-SA-Exim-Connect-IP: 77.24.102.157
X-SA-Exim-Mail-From: mario AT emmenlauer DOT de
Subject: Cygwin rsync changes (acl) permissions, even when not asked to?
X-SA-Exim-Version: 4.2.1 (built Tue, 16 Feb 2021 15:21:40 +0000)
X-SA-Exim-Scanned: Yes (on merope.marssoft.de)
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-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: Mario Emmenlauer via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Mario Emmenlauer <mario AT emmenlauer DOT de>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

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.

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.

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.

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

 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?


Here are the detailed permissions *before* running rsync from getfacl and
icacls:

# file: CHANGELOG.md
# owner: COMPANY+User
# group: COMPANY+User
user::rwx
group::r-x	#effective:r--
group:Authenticated Users:rwx	#effective:rw-
group:SYSTEM:rwx	#effective:rw-
group:Administrators:rwx	#effective:rw-
group:Users:r-x	#effective:r--
mask::rw-
other::r--

CHANGELOG.md NULL SID:(DENY)(Rc,WEA,X,DC)
              COMPANY\User:(R,W,D,WDAC,WO)
              COMPANY\User:(DENY)(X)
              NT AUTHORITY\Authenticated Users:(DENY)(X)
              NT AUTHORITY\SYSTEM:(DENY)(X)
              BUILTIN\Administrators:(DENY)(X)
              BUILTIN\Users:(DENY)(X)
              COMPANY\User:(RX)
              NT AUTHORITY\Authenticated Users:(RX,W)
              NT AUTHORITY\SYSTEM:(RX,W)
              BUILTIN\Administrators:(RX,W)
              BUILTIN\Users:(RX)
              Everyone:(R)


After running rsync, the permissions from getfacl and icacls are:

# file: CHANGELOG.md
# owner: COMPANY+User
# group: COMPANY+User
user::rwx
group::r-x	#effective:r--
group:Authenticated Users:rwx	#effective:rw-
group:SYSTEM:rwx	#effective:rw-
group:Administrators:rwx	#effective:rw-
group:Users:r-x	#effective:r--
mask::rw-
other::r--

CHANGELOG.md NULL SID:(DENY)(Rc,WEA,X,DC)
              COMPANY\User:(F)
              COMPANY\User:(DENY)(X)
              NT AUTHORITY\Authenticated Users:(DENY)(X)
              NT AUTHORITY\SYSTEM:(DENY)(X)
              BUILTIN\Administrators:(DENY)(X)
              BUILTIN\Users:(DENY)(X)
              COMPANY\User:(RX)
              NT AUTHORITY\Authenticated Users:(RX,W)
              NT AUTHORITY\SYSTEM:(RX,W)
              BUILTIN\Administrators:(RX,W)
              BUILTIN\Users:(RX)
              Everyone:(R)

All the best,

     Mario Emmenlauer

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