To turn logging on and off, set the appropriate level in the
[global]
section of
smb.conf. Then, you can either restart Samba, or force the current daemon to reprocess the configuration file. You also can send the
smbd process a SIGUSR1 signal to increase its log level by one while it's running, and a SIGUSR2 signal to decrease it by one:
# Increase the logging level by 1
kill -SIGUSR1 1234
# Decrease the logging level by 1
kill -SIGUSR2 1234