Managing Network File Systems in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

unshare Command

The unshare command enables you to make a previously available file system unavailable for mounting by clients. When you unshare an NFS file system, access from clients with existing mounts is inhibited. The file system might still be mounted on the client but the files are not accessible. The unshare command deletes the share permanently unless the –t option is used to temporarily unshare the file system.


Note -  For information about how NFS Version 4 functions when a file system is unshared and then reshared, refer to Unsharing and Resharing a File System in NFS Version 4.

The following example unshares the file system /usr/src:

# unshare /usr/src