Why cp does not respect nfsv4 acls though touch does?

Solution Verified - Updated -

Issue

  • As illustrated below cp does not preserve attributes and thus does not adhere to the nfv4 ACLs, but touch does.
[root@iscsi-storage test]# touch a
[root@iscsi-storage test]# setfacl -m u:root:rwx a
[root@iscsi-storage a]# nfs4_getfacl a
D::OWNER@:x
A::OWNER@:rwatTcCy
A::root@localdomain:rwaxtcy
A::GROUP@:rtcy
A::EVERYONE@:rtcy
[root@iscsi-storage a]# cp a b
[root@iscsi-storage a]# nfs4_getfacl b
D::OWNER@:x
A::OWNER@:rwatTcCy
A::GROUP@:rxtcy
A::EVERYONE@:rtcy
[root@iscsi-storage a]# ls -lrth
total 4.0K
-rw-rwxr--. 1 root root 0 Apr 22 07:35 a
-rw-r-xr--. 1 root root 0 Apr 22 07:37 b

Environment

  • Red Hat Enterprise Linux 6.2
  • NFSv4 Client

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content