The sharemgr utility is an administrative tool that provides an enhanced method of sharing files and performing related tasks. The sharemgr utility introduces the following concepts:
Share. One or more files or directories in a share group.
Share group. A container of one or more shared files or directories.
Note the following:
Options for sharemgr are set to a share group, not to a specific file or directory. All options apply to each file and directory in the group.
A file or directory can only be assigned to one share group. However, you can move a file or directory from one group to another.
A share group can be used by multiple file system types. For example, the share group my_group could be used by the NFS and ZFS file systems and be assigned one set of options for NFS and another set of options for the ZFS file system.
When a share is managed by the ZFS file system, sharemgr identifies the share and lists it in a zfs share group.
The sharemgr utility provides a unique way of checking the validity of a desired configuration. The -n option allows you to test the validity of the options and properties you want to use with a specific subcommand. The test does not change your configuration. For example, if you use the -n option with the subcommand create, no share group is created.
You can also use the ZFS file system sharesmb property to configure SMB sharing. For more information, see How to Create a CIFS Share (zfs) and the zfs(1M) and zpool(1M) man pages.
For procedures that use the sharemgr utility, see the following:
Also, see the sharemgr(1M) man page.