Name
smbcontrol
Synopsis
The smbcontrol command sends control messages to running smbd or nmbd processes.
Command synopsis
smbcontrol -i [options]or:
smbcontrol [options] process message-type [parameters]Options
-
-i Runs smbcontrol interactively, executing commands until a blank line or “q” is read. The user must have superuser privileges.
-
-sfilename Specifies the location of the Samba configuration file.
-
-ddebuglevel Sets the debugging level for logging. The debug level can be set from to 10.
Whether smbcontrol commands are issued in interactive mode or from the command line, the commands are in the same format. Each command has up to three parts:
-
process Specifies the process or group of processes to which to send the message. If
processissmbd, all smbd processes will receive the message. Ifprocessisnmbd, only the main nmbd process (identified by Samba’snmbd.pidfile) receives the message. Ifprocessis the numeric PID of a running process on the system, that process will receive the message.-
message-type Specifies the type of message that is sent. For more information, see smbcontrol message types that follows.
-
parameters Specifies additional parameters required by some messages.
smbcontrol message types
-
close-shareshare_name Closes the connection to a share or shares. If
share_nameis specified as an asterisk (*), connections to all shares will be closed. To close a single connection,share_nameis given as the name of a share, as specified in the Samba configuration file, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access