Mounting a file system using Secure Network File system

You can explicitly mount a secure NFS directory.

To mount a secure NFS directory explicitly, perform the following steps:

  1. Verify that the NFS server has exported the directory by running the command:
    showmount -e ServerName
    where ServerName is the name of the NFS server. This command displays the names of the directories currently exported from the NFS server. If the directory you want to mount is not listed, export the directory from the server.
  2. Establish the local mount point by using the mkdir command. For NFS to complete a mount successfully, a directory that acts as the mount point (or placeholder) of an NFS mount must be present. This directory should be empty. This mount point can be created like any other directory, and no special attributes are needed.
  3. Verify that the publickey map exists and that the keyserv daemon is running. For more information, see Configuring secure Network File System.
  4. Type
    mount -o secure ServerName:/remote/directory /local/directory
    where ServerName is the name of the NFS server, /remote/directory is the directory on the NFS server you want to mount, and /local/directory is the mount point on the NFS client.
    Note: Only the root user can mount a secure NFS.