bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34340: cp -a doesn't copy acls


From: Assaf Gordon
Subject: bug#34340: cp -a doesn't copy acls
Date: Fri, 8 Feb 2019 14:30:06 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0

tags 34340 moreinfo
stop

Hello,

On 2019-02-05 4:50 p.m., L A Walsh wrote:
and it is not on the manpage, but tar copies
acls and has them on the manpage.

It guess it is an oversite that cp copies over 'xattrs'
but not acls?

First,
Can you verify the 'cp' binary you are using was compiled with
ACL support? Something like:

  $ ldd $(which cp) | grep acl
  libacl.so.1 => /lib/x86_64-linux-gnu/libacl.so.1 (0x00007f0b68066000)


Second,
Are you using a local file-system or a remote one?
There is a previous bug about ACLs on NFS4: https://bugs.gnu.org/20884 .

Third,
Do you have a reproducible case?
e.g. on my local system:

   $ touch a
   $ setfacl -m "u:nobody:w" a
   $ cp -a a b

   $ getfacl b
   # file: b
   # owner: gordon
   # group: gordon
   user::rw-
   user:nobody:-w-
   group::r--
   mask::rw-
   other::r--

If you have a reproducible case, please also run it with "strace" to
help us troubleshoot the issue more clearly, e.g.

   strace -o cp-acl.log cp -a a b

And attach the 'cp-acl.log' file.

regards,
 - assaf










reply via email to

[Prev in Thread] Current Thread [Next in Thread]