Go to main content

man pages section 8: System Administration Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

unshare(8)

Name

unshare - make local resource unavailable for mounting by remote systems

Synopsis

unshare [-F protocol
] [-a | [-t] [pathname
 | sharename]]

Description

The unshare command unpublishes a file system share, which makes a shared local file system unavailable for file sharing protocol. If the –F protocol option is omitted, then the first file sharing protocol listed in the /etc/dfs/fstypes file used as the default sharing protocol.

Options

–F protocol

Identify the file sharing protocol.

–a

Unpublish all active shares.

–t

Temporarily unpublish a share. By default, all shares are permanently unpublished.

Files

/etc/dfs/fstypes

List of file sharing protocols. NFS is the default file-sharing protocol.

/etc/dfs/sharetab

Contains a table of local resources published by the share command.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os

See Also

attributes(7), share(8), shareall(8)

Notes

If pathname or resourcename is not found in the share information, an error message is sent to standard error.

When an unshare command completes successfully, a client mounting a file system specified in that unshare command no longer has access to that file system.