DESCRIPTION
The
sharectl command operates on file sharing services. The command sets the client and server operational properties, takes and restores configuration snapshots, and gets status of the protocol service. Currently supported services are
autofs(4),
nfs(4),
smb(4) and smbfs.
The
set subcommand requires root privileges or that you assume the Primary Administrator role.
A non-privileged user can change the persistent settings when granted required authorizations, see appropriate sharing protocol man page.
Options
The following options are supported where applicable:
-
-h
-
Displays usage message. Supported for all subcommands.
-
-p property[=value]
-
Specifies a property. See Subcommands, below.
Subcommands
sharectl supports the subcommands described below:
-
sharectl delsect section protocol
-
Delete configuration section for the specified protocol. Currently only protocol that has configuration sections is smbfs (see nsmbrc(4) and EXAMPLES).
-
sharectl get [-p property]... protocol
-
Get the property values for the specified protocol. If no -p option is provided, get all the properties for the specified protocol. For NFS, properties correspond to entries in the /etc/default/nfs file. See nfs(4).
-
sharectl set {-p property=value}... protocol
-
Set properties for the specified file sharing protocol.
-
sharectl status [protocol]
-
Display status of the specified protocol, or, if no protocol is specified, of all file sharing protocols.