Root user gets access denied to access NTFS volume due to root squash
Applies to
- ONTAP 9
- NFSv3
Issue
- NFSv3 client root user can mount NTFS volume, but gets
permission denied
in accessing the volume
[root@cliet1 ~]# cd /mnt/ontap_share -bash: cd: /mnt/ontap_share: Permission denied
- The root user has proper name mapping configured
- The Superuser Security type is set to nonein the export policy rule
::> export-policy rule show -vserver svm1 -clientmatch nfsclient1 -fields vserver,ruleindex,clientmatch,superuser,protocol,policyname,anon
vserver policyname ruleindex protocol clientmatch anon superuser
------------------ ----------- --------- -------- ------------------------- ----- ---------
svm1 policy1 20 nfs nfsclient1.ntap.local 65534 none
Security trace
showsaccess denied
on the anonymous user, indicating the root user is squashed to the anonymous user with UID 65534
Node Index Filter Details Reason
--------------- ----- -------------------------- ----------------------------------------------------------------
node1 1 Security Style: NTFS and Access is denied because the UNIX user could not be NT ACL mapped to a valid NT user while reading the user's access rights on an object.
Protocol: nfs
Volume: vol1
Share: -
Path: /data/
Win-User: -
UNIX-User: 65534
Session-ID: -