sharectl - configure and manage file sharing service
sharectl status [-h] [protocol]
sharectl get [-h] [-p property]... protocol
sharectl set [-h] [-p property=value]... protocol
The sharectl command operates on file-sharing protocols, such as NFS and SMB. The command sets the client and server operational properties, takes and restores configuration snapshots, and gets status of the protocol service.
The get and set subcommands (see below) require root privileges. An authorized user can use sharectl to set global values for NFS and SMB properties in the Solaris server management facility. See nfs(5) and smb(5).
The following options are supported:
Displays usage message.
Specifies a property. See “Subcommands,” below.
sharectl supports the subcommands described below. The form of a sharectl command is:
# sharectl subcommand [option]
get [–pproperty] protocol
Get the property values for the specified protocol. If no –p option is
provided, get all the properties for the specified protocol. If only client or server side
support for the specified protocol is installed, then only client or server specific
properties are displayed.
set [–pproperty=value]... protocol
Set properties for the specified file sharing protocol. If only client or server side support
for the specified protocol is installed, then only client or server specific properties can
Display status of the specified protocol, or, if no protocol is specified, of all file-sharing protocols.
If the value of this property is none, the following rules
A client can see only the shares that it is allowed to access.
A client cannot see access lists for the shares defined at server.
A client cannot see remote mounts from the server done by other clients.
If the value is full, these rules do not apply. The default value is
For example, to place the restrictions specified above for users of showmount(8), enter:
# sharectl set -p showmount_info=none nfs
% sharectl get -p showmount_info nfs
Example 1 Getting Properties
The following command gets the properties for the NFS protocol.