X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2DED23858C2C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kosowsky.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kosowsky.org X-CMAE-Analysis: v=2.4 cv=FJzee8ks c=1 sm=1 tr=0 ts=61d31b6f a=BYuR5sdBHlGgEYWvfiqr5Q==:117 a=BYuR5sdBHlGgEYWvfiqr5Q==:17 a=IkcTkHD0fZMA:10 a=DghFqjY3_ZEA:10 a=omVN6xFhE9CBE1quvY0A:9 a=QEXdDO2ut3YA:10 X-SECURESERVER-ACCT: inbox AT kosowsky DOT org X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, FROM_BLANK_NAME, KAM_ASCII_DIVIDERS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 MIME-Version: 1.0 Message-ID: <25043.7019.643488.389876@consult.pretender> Date: Mon, 3 Jan 2022 10:51:07 -0500 To: cygwin AT cygwin DOT com Subject: Duplicate ACLs? - Can't copy file even with Admin permissions X-Mailer: VM 8.2.0b under 25.2.2 (x86_64-pc-linux-gnu) From: "" X-Virus-Scanned: ClamAV using ClamSMTP X-CMAE-Envelope: MS4xfLWVOizkcesBNTkFnNpKrMwHwXTxeI/oZYtEKififJQKtFVc3z+hvcQt8DTl3c7J5kj/K0lvkMrEHBjkRrr7H9yjraMmgUscs9R7OqbxUV11PCXJra3V /yEJbFGCWN5z1IvW1leo/b3PqX0s/V5AJNH7bnbzbg5dkJBGUUDHV0KvrEX7YI+K/cU7HEEgVXRu2/bPwq3lXoWldHYwWhh//4E= X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 203FpU9H014564 To: Subject: X-Mailer: VM 8.2.0b under 25.2.2 (x86_64-pc-linux-gnu--text follows this line-- I have a file: /c/Config.Msi/3da9e136.rbf that I cannot copy, even when I run bash as an administrator -- seemingly due to perm/acl errors. Specifically: # mv 3da9e136.rbf newfile: works # cp 3da9e136.rbf newfile: works But, # cp -a 3da9e136.rbf newfile cp: preserving permissions for ‘newfile’: Permission denied (though the file is created) If I then do # getfacl 3da9e136.rbf | setfacl -f - newfile setfacl: more than one user entry. And: # getfacl 3da9e136.rbf # file: 3da9e136.rbf # owner: Administrators # group: SYSTEM user::rwx group::rwx other::r-x user::rwx group::rwx group:SYSTEM:rwx mask::rwx other::r-x While: # getfacl newfile # file: newfile # owner: Administrators # group: SYSTEM user::rwx group::rwx other::r-x So the problem seems to be that the 'user' (and presumably also the 'group' and 'other') ACLs are duplicated. Note that 'subinacl' shows: ================================= +File C:\Config.Msi\3da9e136.rbf ================================= /control=0x0 /owner =builtin\administrators /primary group =system /audit ace count =0 /perm. ace count =3 /pace =system Type=0x0 Flags=0x3 AccessMask=0x1f01ff /pace =everyone Type=0x0 Flags=0x3 AccessMask=0x1200a9 /pace =builtin\administrators Type=0x0 Flags=0x3 AccessMask=0x1f01ff ----------------------------------------- Not sure if this is an NTFS bug (or feature???) or a problem with Cygwin file manipulation tools. Either way: - Is this a bug? (or a feature????) - Any idea how or why this happened? - Any idea how (or whether) to fix this so that I don't have duplicate ACLs? Ideally, I would like to "fix" the problem with Cygwin tools... -- 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