Skip to main content
NetApp Knowledge Base

Getting error- "mount.nfs4: Operation not permitted" while trying to mount NFS share

Views:
842
Visibility:
Public
Votes:
1
Category:
ontap-9
Specialty:
NAS
Last Updated:
3/14/2025, 5:26:04 AM

Applies to

  • Ontap 9
  • NFSv4

Issue

  • Unable to mount NFS share and getting below error:

[root@xxxxxx etc]# /sbin/mount.nfs4 -v svm1.de.db.com:/svm1_68953_1_006_nfs /usr/sap/testkrbp5 -o vers=4 sec=krb5p
mount.nfs4: timeout set for Mon Jun 10 15:45:06 2024
mount.nfs4: trying text-based options 'vers=4,addr=100.110.xx.xx,clientaddr=10.202.xx.xx'
mount.nfs4: mount(2): Operation not permitted
mount.nfs4: Operation not permitted

  • User is mounting the filesystem using  vers=4, sec=krb5p
  • Security style of the volume is Unix
  • NFSv4 protocol is allowed in the export-policy for the share in the volume:

Cluster::> volume show NetAppvol -fields policy
vserver         volume                          policy
--------------- ------------------------------- -------------------------------
svm             NetAppvol                     NetApppolicy

Cluster::> vserver export-policy rule show -vserver svm -policyname NetApppolicy
Policy       Rule           Access           Client                   RO
Vserver      Name            Index   Protocol Match                 Rule
------------ --------------- ------  -------- --------------------- ---------
svm         NetApppolicy      1          nfs4           xxxxx     krb5p


Cluster::> vserver export-policy rule show -vserver svm -policyname NetApppolicy -instance

Vserver: svm
Policy Name: NetApppolicy
Rule Index: 1
Access Protocol: nfs4
List of Client Match Hostnames, IP Addresses, Netgroups, or Domains: xxxxx
RO Access Rule: krb5p
RW Access Rule: krb5p
User ID To Which Anonymous Users Are Mapped: 65534
Superuser Security Types: krb5p
Honor SetUID Bits in SETATTR: false
Allow Creation of Devices: true

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.