SMBCONTROL(1)
π smbcontrol(1) β like, the user commands era π
okay bestie, grab your iced coffee because we're diving into smbcontrol(1) from the User Commands section and honestly? it's a little icon. it's a tiny little messenger for your Samba daemons, and once you get it you'll be sending messages like it's a group chat. β¨
πΈ NAME πΈ
smbcontrol β send messages to smbd, nmbd or winbindd processes π
π¦ SYNOPSIS π¦
smbcontrol [-?|--help] [--usage] [-t|--timeout]
[-d|--debuglevel=DEBUGLEVEL] [--debug-stdout] [--configfile=CONFIGFILE]
[--option=name=value] [-l|--log-basename=LOGFILEBASE] [--leak-report]
[--leak-report-full]
smbcontrol [destination] [message-type] [parameter]
like yes, two whole forms, she contains multitudes π
π DESCRIPTION π
so this tool is part of the samba(7) suite, periodt.
smbcontrol is, and I quote the energy here, a very small program β and what it does is send messages to a smbd(8), a nmbd(8), or a winbindd(8) daemon that's running on the system. that's it. that's the whole gig. tiny queen, big job. π
β¨ OPTIONS β¨
-t|--timeoutβ set the timeout to seconds. literally just that.destinationβ one ofnmbd,smbd,winbinddor a process ID. details below because she has layers:- the
alldestination makes the message "broadcast" to all running daemons, includingnmbdandwinbind. heads up: this is a change for Samba 3.3 β before that, the parametersmbdused to do this. so if you're time-traveling, adjust accordingly π°οΈ - the
smbddestination sends the message to thesmbddaemon specified in thesmbd.pidfile. - the
nmbddestination sends the message to thenmbddaemon specified in thenmbd.pidfile. - the
winbindddestination sends the message to thewinbinddaemon specified in thewinbindd.pidfile. - if you give a single process ID, the message goes to only that process. exclusive. we love a one-on-one. π«Ά
- the
message-typeβ the type of message to send. see the MESSAGE-TYPES section for the whole menu, iykyk.parametersβ any parameters required for themessage-type. depends on the vibe of the message, bestie.-?|--helpβ print a summary of command line options. your lil cheat sheet π--usageβ display a brief usage message. even briefer.-d|--debuglevel=levelβlevelis an integer from0to10. the default value if you don't specify this parameter is1for client applications.- the higher the value, the more detail gets logged to the log files about what the server's up to.
- at level
0, only critical errors and serious warnings get logged. - level
1is a reasonable level for day-to-day running β it generates a small amount of information about operations carried out. - levels above
1generate considerable amounts of log data, and should only be used when investigating a problem. - levels above
3are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic π like genuinely unreadable, don't do this to yourself. - note that specifying this parameter here will override the log level parameter in the
/etc/samba/smb.conffile. so this one wins, no cap.
--debug-stdoutβ redirects debug output toSTDOUT. by default all clients are logging toSTDERR. simple as that β¨--configfile=<configuration file>β the file specified contains the configuration details required by the client. the info in this file can be general for client and server, or only provide client specific stuff like options such asclient smb encrypt. see/etc/samba/smb.conffor more information. the default configuration file name is determined at compile time. π οΈ--option=<name>=<value>β set thesmb.conf(5)option"<name>"to value"<value>"from the command line. this overrides compiled-in defaults and options read from the configuration file. if a name or a value includes a space, wrap the whole--option=name=valueinto quotes. π-l|--log-basename=logdirectoryβ base directory name for log/debug files. the extension".progname"will be appended (e.g.log.smbclient,log.smbd, etc...). the log file is never removed by the client. she persists π--leak-reportβ enable talloc leak reporting on exit.--leak-report-fullβ enable full talloc leak reporting on exit. the deluxe version.-V|--versionβ prints the program version number. slay.
π MESSAGE-TYPES π
available message types are, in order, bestie:
close-shareβ ordersmbdto close the client connections to the named share. note that this doesn't affect client connections to any other shares. this message-type takes an argument of the share name for which client connections will be closed, or the"*"character which will close all currently open shares. this may be useful if you made changes to the access controls on the share. this message can only be sent tosmbd. βοΈclose-denied-shareβ behaves likeclose-share, but doesn't disconnect users that are still allowed to access the share. it can safely be sent to allsmbds after changing share access controls. it will only affect users who have been denied access since having connected initially. this message can only be sent tosmbd. polite and effective π«Άdebugβ set debug level to the value specified by the parameter. this can be sent to any of the destinations. if this message is sent to either thesmbdorwinbindddaemons, the parent process will rebroadcast the message to all child processes, changing the debug level in each one. it spreads, fr fr π£kill-client-ipβ ordersmbdto close the client connections from a given IP address. this message-type takes an argument of the IP address from which client connections will be closed. this message can only be sent tosmbd. bye felicia πforce-electionβ this message causes thenmbddaemon to force a new browse master election. democracy time π³οΈpingβ send the specified number of"ping"messages and wait for the same number of reply"pong"messages. this can be sent to any of the destinations. adorable honestly πprofileβ change profile settings of a daemon, based on the parameter. the parameter can be"on"to turn on profile stats collection,"off"to turn off profile stats collection,"count"to enable only collection of count stats (time stats are disabled), and"flush"to zero the current profile stats. this can be sent to anysmbdornmbddestinations. πdebuglevelβ request the debuglevel of a certain daemon and write it to stdout. this can be sent to any of the destinations.profilelevelβ request the profilelevel of a certain daemon and write it to stdout. this can be sent to anysmbdornmbddestinations.printnotifyβ ordersmbdto send a printer notify message to any Windows NT clients connected to a printer. this message-type takes the following arguments:queuepause printernameβ send a queue pause change notify message to the printer specified.queueresume printernameβ send a queue resume change notify message for the printer specified.jobpause printername unixjobidβ send a job pause change notify message for the printer and unix jobid specified.jobresume printername unixjobidβ send a job resume change notify message for the printer and unix jobid specified.jobdelete printername unixjobidβ send a job delete change notify message for the printer and unix jobid specified.
note that this message only sends notification that an event has occurred. it doesn't actually cause the event to happen. it's a notifier, not a doer β important distinction bestie π
this message can only be sent to smbd. π¨οΈ
dmalloc-markβ set a mark for dmalloc. can be sent to bothsmbdandnmbd. only available if samba is built with dmalloc support.dmalloc-log-changedβ dump the pointers that have changed since the mark set bydmalloc-mark. can be sent to bothsmbdandnmbd. only available if samba is built with dmalloc support.shutdownβ shut down the specified daemon. can be sent to bothsmbdandnmbd. dramatic but valid πpool-usageβ print a human-readable description of alltalloc(pool)memory usage by the specified daemon/process. available for bothsmbdandnmbd.ringbuf-logβ fetch and print the ringbuf log. requireslogging = ringbuf. available forsmbd,winbinddandnmbd. π§drvupgradeβ force clients of printers using the specified driver to update their local version of the driver. can only be sent tosmbd.reload-configβ force daemon to reloadsmb.confconfiguration file. can be sent tosmbd,nmbd, orwinbindd. refresh era πreload-printersβ forcesmbdto reload printers. can only be sent tosmbd.idmapβ notify about changes of id mapping. can be sent tosmbdor (not implemented yet)winbindd. the sub-commands:flush [uid|gid]β flush caches for sid <-> gid and/or sid <-> uid mapping.delete <ID>β remove a mapping from cache. the mapping is given by<ID>which may either be a sid:S-x-..., a gid:"GID number"or a uid:"UID number".kill <ID>β remove a mapping from cache. terminatesmbdif the id is currently in use. β οΈ yeah that one's spicy, be careful.
num-childrenβ query the number ofsmbdchild processes. this message can only be sent tosmbd. headcount time π―reload-certsβ instruct the LDAP server of a Samba AD DC to reload the TLS certificates protectingldaps://connections. this message can only be sent toldap_server. π
β VERSION β
this man page is part of version 4.23.8 of the Samba suite. π
π¦ SEE ALSO π¦
nmbd(8) and smbd(8). go read those too, bestie, they're connected lore.
πΈ AUTHOR πΈ
the original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. π
and that's the whole page, no skips, no summaries, every flag accounted for. you're welcome π
kisses and see you in the next man page β this one's brought to you by Samba 4.23.8, dated 05/28/2026, and that's on periodt. πβ¨π«Ά
π¦ where this page comes from
- alpine 3.24: samba-doc 4.23.8-r0 Β· GPL-3.0-or-later AND LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms