Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

unshare_nfs(1m) [opensolaris man page]

unshare_nfs(1M) 					  System Administration Commands					   unshare_nfs(1M)

NAME
unshare_nfs - make local NFS file systems unavailable for mounting by remote systems SYNOPSIS
unshare [-F nfs] pathname DESCRIPTION
The unshare command makes local file systems unavailable for mounting by remote systems. The shared file system must correspond to a line with NFS as the FSType in the file /etc/dfs/sharetab. OPTIONS
The following options are supported: -F This option may be omitted if NFS is the first file system type listed in the file /etc/dfs/fstypes. FILES
/etc/dfs/fstypes /etc/dfs/sharetab ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWnfssu | +-----------------------------+-----------------------------+ SEE ALSO
nfsd(1M), share(1M), attributes(5) NOTES
If the file system being unshared is a symbolic link to a valid pathname, the canonical path (the path which the symbolic link follows) will be unshared. For example, if /export/foo is a symbolic link to /export/bar (/export/foo -> /export/bar), the following unshare command will result in /export/bar as the unshared pathname (and not /export/foo): example# unshare -F nfs /export/foo For file systems that are accessed by NFS Version 4 clients, once the unshare is complete, all NFS Version 4 state (open files and file locks) are released and unrecoverable by the clients. If the intent is to share the file system after some administrative action, the NFS daemon (nfsd) should first be stopped and then the file system unshared. After the administrative action is complete, the file system would then be shared and the NFS daemon restarted. See nfsd(1M) SunOS 5.11 6 May 2003 unshare_nfs(1M)

Check Out this Related Man Page

share(1M)																 share(1M)

NAME
share - make local resource available for mounting by remote systems SYNOPSIS
share [-F FSType] [-o specific_options] [-d description] [pathname] The share command exports, or makes a resource available for mounting, through a remote file system of type FSType. If the option -F FSType is omitted, the first file system type listed in /etc/dfs/fstypes is used as default. For a description of NFS specific options, see share_nfs(1M). pathname is the pathname of the directory to be shared. When invoked with no arguments, share displays all shared file sys- tems. -F FSType Specify the filesystem type. -o specific_options The specific_options are used to control access of the shared resource. (See share_nfs(1M) for the NFS specific options.) They may be any of the following: rw pathname is shared read/write to all clients. This is also the default behavior. rw=client[:client]... pathname is shared read/write only to the listed clients. No other systems can access pathname. ro pathname is shared read-only to all clients. ro=client[:client]... pathname is shared read-only only to the listed clients. No other systems can access pathname. Separate multiple options with commas. Separate multiple operands for an option with colons. See . -d description The -d flag may be used to provide a description of the resource being shared. Example 1: Sharing a Read-Only Filesystem This line will share the /disk file system read-only at boot time. share -F nfs -o ro /disk Example 2: Invoking Multiple Options The following command shares the filesystem /export/manuals, with members of the netgroup having read-only access and users on the speci- fied host having read-write access. share -F nfs -o ro=netgroup_name,rw=host1:host2:host3 /export/manuals /etc/dfs/dfstab list of share commands to be executed at boot time /etc/dfs/fstypes list of file system types, NFS by default /etc/dfs/sharetab system record of shared file systems See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ mountd(1M), nfsd(1M), share_nfs(1M), shareall(1M), unshare(1M), attributes(5) Export (old terminology): file system sharing used to be called exporting on SunOS 4.x, so the share command used to be invoked as exportfs(1B) or /usr/sbin/exportfs. If share commands are invoked multiple times on the same filesystem, the last share invocation supersedes the previous--the options set by the last share command replace the old options. For example, if read-write permission was given to usera on /somefs, then to give read- write permission also to userb on /somefs: example% share -F nfs -o rw=usera:userb /somefs This behavior is not limited to sharing the root filesystem, but applies to all filesystems. 9 Dec 2004 share(1M)
Man Page