NFS Services Administrator's Guide (762805-001, March 2014)

In earlier versions of HP-UX, the exportfs command was used to export directories and files to
other systems over a network. Users and programs accessed the exported files on remote systems
as if they were part of the local filesystem. NFS disabled the system from exporting directories by
using the -u option of the exportfs command.
For information on how to share directories with the NFS clients, see “Sharing directories with NFS
clients” (page 22). For information on how to unshare directories, see “Unsharing (Removing) a
shared directory” (page 33).
Following are the new share features that NFS supports:
Secure sharing of directories
Starting with HP-UX 11i v3, NFS enables you to share directories in a secure manner. If you
have configured a security mechanism on your system, the share command enables you to
specify the security mechanism under which the filesystem is shared. For example, if you have
installed and configured the Kerberos Security product, you can specify krb5 as the security
mechanism to be used when you share a filesystem.
For information on how to use the share command to share directories securely, see “Secure
sharing of directories ” (page 25).
Sharing directories across a firewall
Starting with HP-UX 11i v3, NFS enables you to share directories easily across a firewall. HP
recommends that you share directories across a firewall in one of the following ways:
Using random ports (NFSv2 and NFSv3)
For information on how to share directories across a firewall using random ports, see
“Sharing directories across a firewall without fixed port numbers (NFSv2 and NFSv3)”
(page 30).
Using the /etc/default/nfs file
For information on how to share directories across a firewall using the /etc/default/
nfs file, see “Sharing directories across a firewall using fixed port numbers in the nfs
file” (page 30).
Using the NFSv4 protocol
For information on how to share directories across a firewall using the NFSv4 protocol,
see “Sharing directories across a firewall using the NFSv4 protocol” (page 31).
Using the WebNFS feature
For information on how to share directories across a firewall using the WebNFS feature,
see “Sharing directories across a firewall using the WebNFS Feature” (page 31).
Mounting and unmounting directories
NFS clients can mount any filesystem or a part of a filesystem that is shared by the NFS server.
Filesystems can be mounted automatically when the system boots, from the command line, or
through the automounter. The different ways to mount a filesystem are as follows:
Mounting a filesystem at boot time and using the mount command
For information on how to mount a filesystem at boot time, see “Mounting a remote directory
on an NFS client” (page 37).
Mounting a filesystem using an NFS URL
For information on how to mount an NFS filesystem using an NFS URL, see “Examples of NFS
Mounts ” (page 38).
New features in NFS 15