Hello! I forgot to say that you can use the command last with these files:
[EMAIL PROTECTED] log]# last -f /var/log/wtmpx pereti smb/5 10.1.1.110 Thu Aug 14 08:15 still logged in pereti smb/5 10.1.1.110 Thu Aug 14 08:02 - 08:13 (00:11) aluno smb/9 10.1.1.113 Thu Aug 14 07:33 - 07:37 (00:03) aluno smb/9 10.1.1.113 Thu Aug 14 07:33 - 07:33 (00:00) aluno smb/8 10.1.1.114 Thu Aug 14 07:33 - 07:36 (00:03) aluno smb/7 10.1.1.112 Thu Aug 14 07:32 still logged in and last -f /var/log/utmpx will show who are still logged in, almost the same output than smbstatus -b These is the only 2 files created here, I don�t know if you can create one per user. Bruno Pereti. ----- Original Message ----- From: "Jason Williams" <[EMAIL PROTECTED]> To: "Bruno Gimenes Pereti" <[EMAIL PROTECTED]> Sent: Wednesday, August 13, 2003 6:19 PM Subject: Re: [Samba] smb.log v/s nmb.log > Thanks Bruno. I do appreciate it very much. > Looks like the server does have utmp compiled with it. I checked the > install file. (I inherited this server...much work to do) > > Thus, looks like I just need to setup utmp = Yes > utmp dir = /var/log > > That will allow me to see how logged in at what time as well as what time > the person logged out? > Is this just a general file that shows the daily activity? > Possible to setup a logging system that will show who logged in and off, > but create the log file per person? > For instance, if Joe logs in, then it will create a file like /var/log/joe > and show when he logged on and off. > > Thanks again Bruno. > > Jason > > At 05:41 PM 8/13/2003 -0300, you wrote: > >Hi Jason, > > > >The "log file" parameter is just the name of the file. At the end you will > >have the same log, don�t matter what is the file name. > > > >To log who logged in the Domain you can do ./configure --with-utmp in the > >compile time and add these lines to your smb.con: > > > >utmp = Yes > >utmp dir = /var/log > > > >And it will create the files: > > > >/var/log/utmpx -> this file with who is logged > >/var/log/wtmpx -> this file with who ever logged. > > > >I this very usefull. > > > >Hope it helps. > > > >Bruno Pereti. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
