마운트된 Unity NFSv4 내보내기에서 파일 또는 디렉토리에 대해 Linux 호스트에서 setfacl 명령을 실행하려고 하면 명령이 실패합니다.
[root@hostname xyz]# setfacl -m g:mygroup:r-x testfile
setfacl: testfile: Operation not supported
setfacl이 NFSv4에서 작동하지 않습니다.
NFSv4 마운트에서 nfs4-getfacl/nfs4-setfacl 명령을 사용해야 합니다. NFSv4에서는 setfacl이 작동하지 않습니다.
이러한 명령을 사용할 수 있도록 "nfs4-acl-tools package" 패키지를 설치해야 합니다.
Debian 기반 Distros(Debian, Ubuntu, Linux Lightning 등)의 예:
[root@hostname xyz]#apt-get install nfs4-acl-tools
[root@hostname xyz]#
[root@hostname xyz]#mount
192.168.1.14:/Test on /tmp/nfs type nfs4 (rw,relatime,vers=4.1,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.15,local_lock=none,addr=192.168.1.14)
[root@hostname xyz]#
[root@hostname xyz]#nfs4_setfacl -R -a A:g:10001:rW /tmp/nfs
[root@hostname xyz]#nfs4_getfacl /tmp/nfs
A:g:10001:rwaDtTNcCy
A:g:10001:rwaDtTNcCy
A:g:10001:rwaDtTNcCy
A::OWNER@:rwaDxtTnNcCy
A:g:GROUP@:rxtncy
A::EVERYONE@:rxtncy
[root@hostname xyz]#