share(1M)
NAME
share − make local resource available for mounting by remote systems
SYNOPSIS
share [ −F FSType ] [ −o specific_options ] [ −d description ] [ pathname ]
AVAILABILITY
SUNWcsu
DESCRIPTION
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 systems.
OPTIONS
−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:
rwpathname 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 resourcename.
ropathname 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.
−d description The −d flag may be used to provide a description of the resource being shared.
EXAMPLES
This line in /etc/dfs/dfstab will share the /disk file system read-only at boot time.
share −F nfs −o ro /disk
Note that if a machine is not sharing any file systems, running share has no effect until you either run /etc/init.d/nfs.server start or reboot the system, both of which start up nfsd(1M) server processes.
FILES
/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 ALSO
share_nfs(1M), shareall(1M), unshare(1M)
NOTE
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 or /usr/etc/exportfs.
Sun Microsystems — Last change: 5 Jul 1990