Hi guys, Does anyone know of some decent Samba log analysis software that will report things like user logon/logoff times, computer names etc. ? Thanks in advance. Kindest regards David Wilson _______________________________ D c D a t a Tel +27 33 342 7003 Fax +27 33 345 4155 Cell +27 82 4147413 http://www.dcdata.co.za support@dcdata.co.za Powered by Linux, driven by passion ! _______________________________ "Computers are not intelligent. They only think they are."
On Mon, Jan 31, 2005 at 09:02:28AM +0200, David Wilson wrote:> Hi guys, > > Does anyone know of some decent Samba log analysis software that will > report things like user logon/logoff times, computer names etc. ? > Thanks in advance.Enabling wtmp should give you the basics of what you're after. see: http://us1.samba.org/samba/docs/man/smb.conf.5.html#WTMPDIRECTORY Yours Tony linux.conf.au http://linux.conf.au/ || http://lca2005.linux.org.au/ Apr 18-23 2005 The Australian Linux Technical Conference!
Hi, you could also use the [netlogon] and execute a preexec script there that writes %U, %I and whatever in a database. You will never get logoff times reliably, only if you could convince all your users to allways shutdown their PC and not simply switch it off. Kind regards, Malte Mueller David Wilson schrieb:>Hi guys, > >Does anyone know of some decent Samba log analysis software that will report things like user logon/logoff times, computer names etc. ? >Thanks in advance. > >Kindest regards >David Wilson >_______________________________ >D c D a t a >Tel +27 33 342 7003 >Fax +27 33 345 4155 >Cell +27 82 4147413 >http://www.dcdata.co.za >support@dcdata.co.za >Powered by Linux, driven by passion ! >_______________________________ > >"Computers are not intelligent. They only think they are." > >
Hi Malte, Thanks for your reply. That sounds like another good way to do things. Thank you for your help again. Kindest regards David Wilson _______________________________ D c D a t a Tel +27 33 342 7003 Fax +27 33 345 4155 Cell +27 82 4147413 http://www.dcdata.co.za support@dcdata.co.za Powered by Linux, driven by passion ! _______________________________ "Computers are not intelligent. They only think they are." ----- Original Message ----- From: ""M. M?ller"" <malte.mueller@ewetel.net> To: "David Wilson" <dave@dcdata.co.za>; <samba@lists.samba.org> Sent: Monday, January 31, 2005 12:01 PM Subject: Re: [Samba] Samba log analysis and report> Hi, > you could also use the [netlogon] and execute a preexec script there that > writes %U, %I and whatever in a database. > You will never get logoff times reliably, only if you could convince all > your users to allways shutdown their PC and not simply switch it off. > > Kind regards, > Malte Mueller > > David Wilson schrieb: > >>Hi guys, >> >>Does anyone know of some decent Samba log analysis software that will >>report things like user logon/logoff times, computer names etc. ? >>Thanks in advance. >> >>Kindest regards >>David Wilson >>_______________________________ >>D c D a t a >>Tel +27 33 342 7003 >>Fax +27 33 345 4155 >>Cell +27 82 4147413 >>http://www.dcdata.co.za >>support@dcdata.co.za >>Powered by Linux, driven by passion ! _______________________________ >> >>"Computers are not intelligent. They only think they are." >> >
Hi Malte, Thanks for helping me out with this. My preexec script on netlogon is working well for logging logins etc. Any ideas how I could log logoffs ? If I get users to always shutdown their PCs ? Thank you for all your assistance so far. Kindest regards David Wilson _______________________________ D c D a t a Tel +27 33 342 7003 Fax +27 33 345 4155 Cell +27 82 4147413 http://www.dcdata.co.za support@dcdata.co.za Powered by Linux, driven by passion ! _______________________________ "Computers are not intelligent. They only think they are." ----- Original Message ----- From: ""M. M?ller"" <malte.mueller@ewetel.net> To: "David Wilson" <dave@dcdata.co.za>; <samba@lists.samba.org> Sent: Monday, January 31, 2005 12:01 PM Subject: Re: [Samba] Samba log analysis and report> Hi, > you could also use the [netlogon] and execute a preexec script there that > writes %U, %I and whatever in a database. > You will never get logoff times reliably, only if you could convince all > your users to allways shutdown their PC and not simply switch it off. > > Kind regards, > Malte Mueller > > David Wilson schrieb: > >>Hi guys, >> >>Does anyone know of some decent Samba log analysis software that will >>report things like user logon/logoff times, computer names etc. ? >>Thanks in advance. >> >>Kindest regards >>David Wilson >>_______________________________ >>D c D a t a >>Tel +27 33 342 7003 >>Fax +27 33 345 4155 >>Cell +27 82 4147413 >>http://www.dcdata.co.za >>support@dcdata.co.za >>Powered by Linux, driven by passion ! _______________________________ >> >>"Computers are not intelligent. They only think they are." >> >
Hi Steven, Thanks for your reply. That sounds like a good idea. When you say "connects at logon" do you mean users map a drive to the "time" share ? What would prevent a user from manually disconnecting the mapped drive ? This will be implemented in a school, you know how kids are ? :) Thank you for your assistance so far, greatly appreciated. Kindest regards David Wilson _______________________________ D c D a t a Tel +27 33 342 7003 Fax +27 33 345 4155 Cell +27 82 4147413 http://www.dcdata.co.za support@dcdata.co.za Powered by Linux, driven by passion ! _______________________________ "Computers are not intelligent. They only think they are." ----- Original Message ----- From: "Steven Kurylo" <skurylo@cleartech.ca> To: "David Wilson" <dave@dcdata.co.za> Sent: Monday, January 31, 2005 11:20 PM Subject: Re: [Samba] Samba log analysis and report> David Wilson wrote: > >> Hi Malte, >> >> Thanks for helping me out with this. >> My preexec script on netlogon is working well for logging logins etc. >> Any ideas how I could log logoffs ? >> If I get users to always shutdown their PCs ? > > For windows XP I've added a user logoff script which disconnects from the > share time (which they connect to on log on). The share time has pre/post > scripts attached to it which log the user, time, and machine. The share > isn't used for anything else. > > Its working well for us. > > -- > Steven Kurylo >
Dave, I use the --with-utmp support (if your system supports it). You can then view logon times using `last` I know on my FreeBSD server (PDC) I can save my accounting info, and get monthly summary totals for all my user's usage rates (who's hitting the server the most via the `ac` command) My RedHat server don't seem to have this installed, but I'm sure that with a google you could get it running on a Linux machine as well. I use this in combo w/ the deadtime = 10 option in smb.conf to automatically disconnect inactive sessions so my utmp, and wtmp logs are a little more accurate. P.S. the acccounting department loves these because they bill users computing support ISOs according to different usage levels. I combine this with data from my SQL server logs, and wala... I can see who my power users are, and who my technophobes are. -- Aaron Zirbes David Wilson wrote:> Hi guys, > > Does anyone know of some decent Samba log analysis software that will report things like user logon/logoff times, computer names etc. ? > Thanks in advance. > > Kindest regards > David Wilson