Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

unshare - Make resources unavailable

&pagelevel(4)&pagelevel

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

-F nfs

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.

pathname

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.