The unshareall command simultaneously revokes the availability of multiple resources at the same time. This locks local resources against mount attempts by remote systems.
There must be an appropriate entry for the resources in the file /etc/dfs/sharetab.
Syntax
unshareall[
-F
fstype[,fstype...]] |
Specifies that availability is to be revoked only for resources of the specified file system types. If this option is not specified, availability will be revoked for all resources made available by the local system. This option currently has no meaning because nfs is the only type of distributed file system supported by POSIX. |
Files
/etc/dfs/dfstab Table of resources to be shared |
Examples
Example 1:
You wish to make unavailable all the NFS resources made available by your system, and lock them against access by remote NFS clients.
$ unshareall -F nfs
Example 2:
You wish to make unavailable all resources currently made available by your system.
$ unshareall