The unshare command revokes the availability of resources. This locks local resources against mount attempts by remote systems.
There must be an appropriate entry for the resource in the file /etc/dfs/sharetab.
Syntax
unshare[ -F nfs] pathname |
Specifies that availability is to be revoked for a resource of the file system type nfs. If this option is not specified, the file system type will be taken from the first line of the file /etc/dfs/fstypes. |
Specifies the path name of the resource which is to be locked to client access. |
Files
/etc/dfs/fstypes Table of installed utilities for distributed file systems |
/etc/dfs/sharetab Table of shared resources |
Example
The directory /export/templates which was automatically made available via dfstab is to be made temporarily unavailable. NFS clients are no longer to be allowed access to it.
$ unshare -F nfs /export/templates
You can make the directory available once again by means of the share command.