public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "" <cygwin@kosowsky.org>
To: cygwin@cygwin.com
Subject: Can't copy file even with Admin permissions
Date: Sun, 2 Jan 2022 16:20:24 -0500	[thread overview]
Message-ID: <25042.5912.353024.105212@consult.pretender> (raw)

I have 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.

- Is this a bug? (or a feature?)
- Any idea how or why this happened?
- Any idea how (or whether) to fix?

                 reply	other threads:[~2022-01-02 21:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=25042.5912.353024.105212@consult.pretender \
    --to=cygwin@kosowsky.org \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).