[Samba] smb.log v/s nmb.log
Bruno Gimenes Pereti
pereti at ump.edu.br
Thu Aug 14 11:40:21 GMT 2003
I forgot to say that you can use the command last with these files:
[root at srv03 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
----- Original Message -----
From: "Jason Williams" <jwilliams at courtesymortgage.com>
To: "Bruno Gimenes Pereti" <pereti at ump.edu.br>
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.
> 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
> >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.
More information about the samba