NFS Services Administrator's Guide
Configuring and Administering NFS
Configuring and Administering an NFS Server
Chapter 232
9. On the NFS server, issue the following command to unexport the
directory:
/usr/sbin/exportfs -u directory
If you unexport a directory that an NFS client currently has mounted,
the next time someone on that client requests access to the directory,
NFS will return an NFS stale file handle error message. The client
may be able to unmount the directory, but if that does not work, the
client must reboot to recover.
For more information, see the following man pages: showmount(1M),
fuser(1M), umount(1M), and exportfs(1M), make(1), and ypmake(1M).
To Enable PC NFS Server Capability
1. If necessary, create a file called /etc/pcnfsd.conf and add PC NFS
configuration information to it. The /etc/pcnfsd.conf file is not
required in order to run pcnfsd. For more information on the
/etc/pcnfsd.conf file, type man 1M pcnfsd at the HP-UX prompt.
2. In the /etc/rc.config.d/nfsconf file, use a text editor to set the
PCNFS_SERVER flag to 1, as follows:
PCNFS_SERVER=1
3. Issue the following command to run the NFS startup script:
/sbin/init.d/nfs.server start
The PCNFS_SERVER flag causes the NFS startup script to start the PC
NFS server daemon, pcnfsd. As a PC NFS server, your system can
export its directories and files to PC NFS clients.
Following are some reasons why you might want to create an
/etc/pcnfsd.conf file:
• If your PC NFS client software is assigning user IDs smaller than
101 or greater than 60002, set the uidrange in the
/etc/pcnfsd.conf file to allow access to a different range of user
IDs, as in the following example:
uidrange 80-60005
• If you want to give PC users a different set of default print options,
the /etc/pcnfsd.conf file should contain a line similar to the
following, which defines raw as a default print option for PC users
submitting jobs to the printer lj3_2: