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
Vladimir Strycek schrieb:> Hi all > > Is there a way to monitor samba per user ? Like what user > downloaded/uploaded and when ...You might try per-user logging. This implies monitoring log files, of course... [Global] log file = /var/log/samba/%u.log I'm not sure if this is the appropriate parameter. YMMV. timbo
Yes, in the global section smb.conf loglevel = 3 # log per machine logfile = /var/log/samba/%m #log per user logfile = /var/log/samba/%u This is all very clear in the docs. Thanks, Adrian Sender. ----- Original Message ----- From: "Vladimir Strycek" <vladoportos@vladoportos.sk> To: <samba@lists.samba.org> Sent: Saturday, January 27, 2007 9:37 PM Subject: [Samba] Monitor samba per user ?> 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 > >-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
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 > Vladimirlog 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)