NFS Services Administrator's Guide
Configuring and Administering NFS
Configuring and Administering an NFS Server
Chapter 230
To Enable NFS Server Capability
1. In the /etc/rc.config.d/nfsconf file, make sure the NFS_SERVER
and START_MOUNTD variables are set to 1, as follows:
NFS_SERVER=1
START_MOUNTD=1
2. Issue the following command to run the NFS startup script:
/sbin/init.d/nfs.server start
The NFS startup script uses the variables in
/etc/rc.config.d/nfsconf to determine which processes to start.
The START_MOUNTD variable causes the NFS startup script to start
rpc.mountd, the mount daemon.
CAUTION If rpc.mountd is configured in /etc/inetd.conf on your system, set the
START_MOUNTD flag to 0. Mounts will fail if rpc.mountd is enabled
through both /etc/inetd.conf and /etc/rc.config.d/nfsconf.
For more information, see the following man pages: mountd(1M) and
inetd.conf(4).
To Remove (Unexport) an Exported Directory
1. On the NFS server, issue the following command for a list of all the
NFS clients that have mounted the directory you want to unexport:
/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 configured
to automount a directory will not be listed by the showmount
command if the directory is not currently mounted.