Appendix D. Summary of Samba Daemons and Commands
This appendix is a reference listing of command-line options and other information to help you use the executables that come with Samba distribution.
Samba Distribution Programs
The following sections provide information about the command-line parameters for Samba programs.
smbd
The smbd program provides Samba’s file and printer services, using one TCP/IP stream and one daemon per client. It is controlled from the default configuration file, samba_dir
/lib/smb.conf, and can be overridden by command-line options.
The configuration file is automatically re-evaluated every minute. If it has changed, most new options are immediately effective. You can force Samba to immediately reload the configuration file if you send a SIGHUP to smbd. Reloading the configuration file, however, will not affect any clients that are already connected. To escape this “grandfather” configuration, a client would need to disconnect and reconnect, or the server itself would have to be restarted, forcing all clients to reconnect.
Other signals
To shut down a smbd process, send it the termination signal SIGTERM (-15) which allows it to die gracefully instead of a SIGKILL (-9). To increment the debug logging level of smbd at runtime, send the program a SIGUSR1 signal. To decrement it at runtime, send the program a SIGUSR2 signal.
Command-line options
-
-D The smbd program is run as a daemon. This is the recommended way to use smbd (it is also the default action). In ...
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