[Samba] Monitor samba per user ?

Vladimir Strycek vladoportos at vladoportos.sk
Thu Feb 1 18:40:06 GMT 2007


Sherwood Botsford  wrote / napísal(a):
> Vladimir Strycek wrote:
>> Hi all
>>
>> Is there a way to monitor samba per user ? Like what user 
>> downloaded/uploaded and when ...
>>
>> smbstatus does not provide this info... and after hours googling with 
>> no luck im posting here.
>>
>> Best regards
>> Vladimir
> log level = 2
> Now, making sense of this is something else.
>
> Here's what you get:
>
>
> [2007/02/01 10:20:28, 1] smbd/service.c:close_cnum(677)
>  lab-104 (192.168.1.104) closed connection to service rendezvous
> [2007/02/01 10:20:35, 2] smbd/open.c:open_file(246)
>  penberthy opened file WinZip/WINZIP32.EXE read=Yes write=No (numopen=1)
> [2007/02/01 10:20:36, 2] smbd/open.c:open_file(246)
>  penberthy opened file Documents/New Folder/TESTDIR.TMP read=Yes 
> write=Yes (numopen=2)
> [2007/02/01 10:20:36, 2] smbd/close.c:close_normal_file(229)
>  penberthy closed file Documents/New Folder/TESTDIR.TMP (numopen=1)
> [2007/02/01 10:20:41, 2] lib/access.c:check_access(329)
>  Allowed connection from  (192.168.1.104)
> [2007/02/01 10:20:45, 2] smbd/close.c:close_normal_file(229)
>
Thanks this helped, i'll made a python script as soon as i have some 
time to filter this onfo from log a show in some normal matter...


More information about the samba mailing list