GNU bug report logs - #34340
cp -a doesn't copy acls

Previous Next

Package: coreutils;

Reported by: L A Walsh <coreutils <at> tlinx.org>

Date: Tue, 5 Feb 2019 23:52:01 UTC

Severity: normal

Tags: moreinfo

Full log


View this message in rfc822 format

From: Assaf Gordon <assafgordon <at> gmail.com>
To: L A Walsh <coreutils <at> tlinx.org>, 34340 <at> debbugs.gnu.org
Subject: bug#34340: cp -a doesn't copy acls
Date: Fri, 8 Feb 2019 14:30:06 -0700
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









This bug report was last modified 6 years and 129 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.