When used with no arguments, shareall shares all resources from file, which contains a list of share command lines. If the operand is a hyphen (-), then the share command lines are obtained from the standard input. Otherwise, if neither a file nor a hyphen is specified, then the file /etc/dfs/dfstab is used as the default.
Resources may be shared by specific file system types by specifying the file systems in a comma-separated list as an argument to -F.
unshareall unshares all currently shared resources. Without a -F flag, it unshares resources for all distributed file system types.
See attributes(5) for descriptions of the following attributes:
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|
The shareall and unshareall commands must be run with an effective UID of 0. If any file being shared or unshared is of the type NFS, then the command requires the
sys_nfs privilege [see share_nfs(1M)]. If the file /etc/dfs/sharetab does not exist, the shareall command will create the file; thus, the shareall command must be run at the sensitivity level of
ADMIN_LOW. If the file /etc/dfs/sharetab exists, then the shareall and unshareall commands can be run at any other sensitivity level if
they have the
file_mac_write privilege. To succeed in all cases, the commands need the