8

How can I log samba events?

I have samba-shared directories and I want to know what exactly someone have download from it. Actually, I can watch iftop to figured out WHO have downloaded, but not WHAT.

Any ideas?

6

According to Chapter 9 of Using Samba - Troubleshooting Samba:

To turn logging on and off, set the appropriate level in the [global] section of smb.conf.

and

By default, logs are placed in samba_directory /var/smbd.log and samba_directory /var/nmbd.log, where samba_directory is the location where Samba was installed (typically, /usr/local/samba).

You can increase the logging level to show more detailed information. So just keep increasing the level until you have information that is detailed enough for your needs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.