NFS Services Administrator's Guide
Configuring and Administering NFS
Configuring and Administering an NFS Server
Chapter 2 33
printer lj3_2 lj3_2 lp -dlj3_2 -oraw
The /etc/pcnfsd.conf file is read when the pcnfsd daemon starts up.
If you make any changes to /etc/pcnfsd.conf while pcnfsd is running,
you must restart pcnfsd before your changes will take effect.
A PC must have NFS client software installed in order to use your
system as a PC NFS server.
For more information on pcnfsd, type man 1M pcnfsd at the HP-UX
prompt.
To Disable NFS Server Capability
1. On the NFS server, issue the following command for a list of all the
NFS clients that have directories mounted from the NFS server you
are planning to disable:
/usr/sbin/showmount -a
NOTE The output of the showmount command is not always complete. If an
NFS client mounts a remote directory twice and unmounts it only
once, the remote directory is still mounted on the client, but the
showmount command does not list that client. Also, clients that are
configured to automount a directory will not be listed by the
showmount command if the directory is not currently mounted.
2. On every NFS client listed by the showmount command, issue the
following command for each directory that is mounted from your
NFS server:
/usr/sbin/fuser -u servername:/directory
This command lists the process IDs and user names of everyone
using the mounted directory.
3. Warn any users to cd out of the directory, and kill any processes that
are using the directory, or wait until the processes terminate. You
can use the following command to kill all processes using the
directory:
/usr/sbin/fuser -ck local_mount_point
4. On every client that has directories mounted from your server, issue
the following command: