NFS Services Administrator's Guide (B.11.31.02) January 2008
Sharing and Unsharing Directories
In HP-UX 11i v3, NFS replaces the exportfs command with the share command. The share
command is used on the server to share directories and files with clients. You can use the unshare
command to disable the sharing of directories with other systems.
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 25). For information on how to unshare directories, see “Unsharing
(Removing) a Shared Directory” (page 37).
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 28).
• 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 34).
— 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 34).
— 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 35).
— 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 35).
18 Introduction