What would be the impact of enabling NFS mount-rootonly?
Applies to
- ONTAP 9
- NFS
Answer
Enabling NFS mount-rootonly means that the NFS server will allow clients to mount only the top-level (root) export. In other words, only exports defined as the “root” of the file system are accepted for NFS mounts. This prevents clients from directly mounting subdirectories of an exported file system.
Enabling the "mount-rootonly" option on an NFS server restricts incoming mount requests to only those originating from a privileged port (typically below 1024), effectively preventing non-root processes or malicious applications from attempting to mount the NFS share, thus enhancing security by limiting the potential source of mount requests.
There is no impact unless clients are configured to source ports from 1025 or greater for mount calls; in this case, the clientes will not be able to be mounted.