The create subcommand makes (or creates) a share group. After you create a share group, use the add-share subcommand to add shares to the group. Note the following:
The group name is restricted to alphanumeric characters, the hyphen (-), and the underscore (_). The first character must be alphabetic.
By default, a newly created share group is enabled.
If a file-system type is not specified, all supported protocols are added to the share group.
When adding options to the share group, you must explicitly define the protocol associated with the options.
This subcommand supports the following options:
Checks the validity of a desired configuration.
Specifies a file-system type. The default is NFS.
Specifies a property for the new share group.
Provides an online-help description.
The create subcommand uses the following syntax:
# sharemgr create [-h] [-n] [-P protocol] [-p property=value] share_group |
The following example creates my_group with the following parameters:
The share group uses NFS.
The permissions for the group are set to read-write.
The functions, setuid() and setgid(), cannot be used on my_group.
example# sharemgr create -P nfs -p rw=true -p nosuid=true my_group |