From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from p3plsmtpa12-03.prod.phx3.secureserver.net (p3plsmtpa12-03.prod.phx3.secureserver.net [68.178.252.232]) by sourceware.org (Postfix) with ESMTPS id 2DED23858C2C for ; Mon, 3 Jan 2022 15:51:12 +0000 (GMT) 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 Received: from consult.pretender ([146.115.145.129]) by :SMTPAUTH: with ESMTPSA id 4Pc6ntVNCMf3B4Pc7nysdS; Mon, 03 Jan 2022 08:51:11 -0700 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@kosowsky.org Received: from consult.pretender (localhost [127.0.0.1]) by consult.pretender (Postfix) with ESMTP id 74C192882FFD for ; Mon, 3 Jan 2022 10:51:10 -0500 (EST) Received: by consult.pretender (Postfix, from userid 495) id 6EA182882FFC; Mon, 3 Jan 2022 10:51:10 -0500 (EST) 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 Received: from consult.pretender (localhost [127.0.0.1]) by consult.pretender (Postfix) with ESMTPSA id AE54E2882FF7 for ; Mon, 3 Jan 2022 10:51:07 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <25043.7019.643488.389876@consult.pretender> Date: Mon, 3 Jan 2022 10:51:07 -0500 To: cygwin@cygwin.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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2022 15:51:13 -0000 To:=20 Subject: X-Mailer: VM 8.2.0b under 25.2.2 (x86_64-pc-linux-gnu--text follows thi= s 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: =09# mv 3da9e136.rbf newfile: works =09# cp 3da9e136.rbf newfile: works But, =09# cp -a 3da9e136.rbf newfile =09cp: preserving permissions for =E2=80=98newfile=E2=80=99: Permission= denied =09(though the file is created) If I then do =09# getfacl 3da9e136.rbf | setfacl -f - newfile =09setfacl: more than one user entry. And: =09# getfacl 3da9e136.rbf =09# file: 3da9e136.rbf =09# owner: Administrators =09# group: SYSTEM =09user::rwx =09group::rwx =09other::r-x =09user::rwx =09group::rwx =09group:SYSTEM:rwx =09mask::rwx =09other::r-x While: =09# getfacl newfile =09# file: newfile =09# owner: Administrators =09# group: SYSTEM =09user::rwx =09group::rwx =09other::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: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D +File C:\Config.Msi\3da9e136.rbf =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D /control=3D0x0 /owner =3Dbuiltin\administrators /primary group =3Dsystem /audit ace count =3D0 /perm. ace count =3D3 /pace =3Dsystem Type=3D0x0 Flags=3D0x3 AccessMask=3D0x1f01ff /pace =3Deveryone Type=3D0x0 Flags=3D0x3 AccessMask=3D0x1200a9 /pace =3Dbuiltin\administrators Type=3D0x0 Flags=3D0x3 AccessMask=3D0x= 1f01ff ----------------------------------------- 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...