NFS Services Administrator's Guide
Configuring and Administering NFS Services
Configuring and Administering an NFS Server
Chapter 272
The directory that you have unshared should not be present in the
list displayed.
Manual Unshare 1. To remove a directory from the server’s internal list of shared
directories, enter the following command:
unshare
directoryname
2. To verify whether all the directories are unshared, enter the
following command:
share
The directory that you have unshared should not be present in the
list displayed.
Disabling the NFS Server
To disable the NFS server, follow these steps:
1. On the NFS server, enter the following command to unshare all the
shared directories:
unshareall -F nfs
2. Enter the following command to disable NFS server capability:
/sbin/init.d/nfs.server stop
3. On the NFS server, edit the /etc/rc.config.d/nfsconf file to set
the NFS_SERVER variable to 0, as follows:
NFS_SERVER=0
This prevents the NFS server daemons from starting when the
system reboots.
For more information about forced unmount, unmounting and
unsharing, see mount_nfs (1M), unshare (1M), and umount (1M).