SUNWcsu
The share command makes local filesystems available for mounting by remote systems.
If no argument is specified, then share displays all filesystems currently shared, including NFS filesystems and filesystems shared through other distributed file system packages.
ro=, rw=, and root= are guaranteed to work over UDP but may not work over other transport providers.
If a filesystem is shared with an ro= list and a root= list, any host that is on the root= list will be given only read-only access, regardless of whether that host is specified in the ro= list, unless rw is declared as the default, or the host is mentioned in an rw= list. The same is true if the filesystem is shared with ro as the default. For example, the following share commands will give read-only permissions to hostb:
The following will give read/write permissions to hostb:
If the filesystem being shared is a symbolic link to a valid pathname, the canonical path (the path which the symbolic link follows) will be shared.
For example, if /export/foo is a symbolic link to /export/bar (/export/foo -> /export/bar), the following share command will result in /export/bar as the shared pathname (and not /export/foo).
Note that an NFS mount of server:/export/foo will result in server:/export/bar really being mounted.
This line will share the /disk file system read-only at boot time.
share -F nfs -o ro /disk
Note that the same command entered from the command line will not share the /disk file system unless there is at least one file system entry in the /etc/dfs/dfstab file. The mountd(1M) and nfsd(1M) daemons only run if there is a file system entry in /etc/dfs/dfstab when starting or rebooting the system.