Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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