Permission denied when copying a read-only file from local to ONTAP volume
Applies to
- ONTAP 9
- NFSv4.x
- NFSv4 ACL
Issue
- NFSv4.x client gets permission denied when copying a read-only file from local to ONTAP UNIX volume
[user1@client1 test]$ echo 'test' > /tmp/test
[user1@client1 test]$ chmod 444 /tmp/test
[user1@client1 test]$ ll /tmp/test
-r--r--r-- 1 user1 users 15 Jan 30 18:07 /tmp/test
[user1@client1 test]$ cp /tmp/test /mnt/vol1/test
cp: failed to close ‘/mnt/vol1/test’: Permission denied
[user1@client1 test]$ ll /mnt/tmp/test/
total 12K
-r--r--r-- 1 user1 users 0 Jan 30 18:27 test
- Packet trace shows that ONTAP returns
NFS4ERR_ACCESS
to the NFS write call - It works when copying a read-write file from local to ONTAP UNIX volume