HP-UX System Administrator's Guide: Configuration Management
Sharing an HP-UX Directory
Use either of the following procedures to set up NFS shares on the server.
• “Share a Directory Using Text-Based HP SMH” (page 77).
• “Share a Directory Using HP-UX Commands” (page 77).
NOTE: An NFS server can share an ordinary file as well as a directory. In either case,
the NFS client must mount the shared file system on a directory.
Share a Directory Using Text-Based HP SMH
1. Log in to the server as superuser.
2. Start HP SMH, as described in “Starting Text-Based HP SMH” (page 30).
3. Enable the NFS server, if necessary, as described in “Enabling and Disabling the
NFS Server and Client” (page 76).
4. Navigate to the Share/Unshare File System screen.
a. Press n, Networking and Communications.
b. Press s, Network Services Configuration.
c. Press f, Networked File Systems.
d. Press s, Share/Unshare File System.
The currently defined shared directories are displayed with columns indicating:
Local Directory The full path of the local directory name of the file
system.
Currently Shared Whether the file system is currently shared; is it an
entry in /etc/dfs/sharedtab?
Permanently Shared Is it an entry in /etc/dfs/dfstab?
Logging Enabled Is the use of the file system being logged.
5. Press s, Share a File System.
A screen showing the needed fields is displayed.
Enter values as described in the share(1M) and share_nfs(1M) manpages.
6. (Optional) Select Preview to see the commands that will be executed.
7. Select OK to share the directory or Cancel to quit the process.
Share a Directory Using HP-UX Commands
1. Log into the server as superuser.
Configuring the Network File System (NFS) 77