* Can't copy file even with Admin permissions
@ 2022-01-02 21:20 cygwin
0 siblings, 0 replies; only message in thread
From: cygwin @ 2022-01-02 21:20 UTC (permalink / raw)
To: cygwin
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?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-02 21:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-02 21:20 Can't copy file even with Admin permissions cygwin
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).