NFSv4 ACL access gets permission denied
Applies to
- ONTAP
- NFSv4 ACL
- NFSv4
Issue
- NFS user gets
Permission deniedwhen accessing a directory over NFSv4
user1@host1:/vol1$ cd dir1/ bash: cd: dir1/: Permission denied- The directory has an explicit NFSv4 group ACE configured
root@host1:/home/localroot# nfs4_getfacl /vol1/dir1/# file: /vol1/dir1/A:g:g1@ntap.local:rwaDxtTnNcCyA::OWNER@:rwaDxtTnNcCyA:g:GROUP@:rxtncyD::EVERYONE@:rxtncy- ONTAP
getxxbyyyshows the UNIX user is a member of the configured ACE group
::*> vserver services name-service getxxbyyy getgrlist -node node1 -vserver svm1 -username user1 -use-cache false -show-source trueSource used for lookup: Unknownpw_name: user1Groups: 8668 8668 8671 8682- NFS client
idcommand displays the UNIX user missing the ACE group
user1@host1:/dir1$ iduid=5600(user1) gid=8668(gs1) groups=8668(gs1),8671(g2)- ONTAP
show-effective-permissionsshows the UNIX user has sufficient permission on the directory
::*> vserver security file-directory show-effective-permissions -vserver svm1 -unix-user-name user1 -path /vol1/dir1 -instance Vserver: svm1 Windows User Name: ntap\user1 Unix User Name: user1 File Path: /vol1/dir1/ CIFS Share Path: - Effective Permissions: Effective File or Directory Permission: 0x1601ff Read Write Append Read EA Write EA Execute Delete Child Read Attributes Write Attributes Read Control Write DAC Synchronize
