Why cp does not respect nfsv4 acls though touch does?
Issue
- As illustrated below
cpdoes not preserve attributes and thus does not adhere to thenfv4ACLs, 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.