[Samba] How to see loging of the user

Patrick DUBAU patrick.dubau at alsace.iufm.fr
Tue Jan 3 13:08:48 GMT 2006


Thanks Sebastian for your (quick) response.

I did what you say and it works. But i have 3 questions :
- only the 8 first characters from the loging name are stored (for 
example : patrick. instead of patrick.dubau, see capture below). Is 
there a vay to pass over this limit ?
- for the 2 last lines from the capture below (lines starting by 
isabelle) i don't understand the meaning. The last line says : she 
logged in at 13:40 and logout at 13:40. But line before says she's still 
connected... Strange no ? (for the same station !)
- we have 2 severs (1 PDC and 1 BDC) so only one of them will log the 
login and logout, and not only the same, in fact the first which 
responds Right ?

patrick. smb/2        192.168.251.78   Tue Jan  3 13:47 - 13:48  (00:00)
patrick. smb/3        192.168.251.78   Tue Jan  3 13:44 - 13:47  (00:03)
patrick. smb/2        192.168.251.78   Tue Jan  3 13:44 - 13:45  (00:00)
ais.mari smb/2        192.168.251.78   Tue Jan  3 12:29 - 12:29  (00:00)
ais.mari smb/2        192.168.251.78   Tue Jan  3 12:27 - 12:28  (00:00)
claude.s smb/2        192.168.251.42   Tue Jan  3 12:16 - 12:16  (00:00)
martial. smb/1        192.168.251.65   Tue Jan  3 11:47   still logged in
patrick. smb/2        192.168.251.75   Tue Jan  3 11:27 - 11:27  (00:00)
patrick. smb/1        192.168.251.75   Tue Jan  3 11:27 - 11:40  (00:13)
patrick. smb/1        192.168.251.75   Tue Jan  3 11:26 - 11:27  (00:00)
isabelle smb/2        192.168.251.27   Tue Jan  3 13:40   still logged in
isabelle smb/1        192.168.251.27   Tue Jan  3 13:40 - 13:52  (00:11)

Thx





Sebastian Held a écrit :

>Hi,
>
>you can use the utmp logging feature.
>Place the following options in the global group of smb.conf:
>utmp = Yes
>utmp directory = /var/log/samba/utmp
>wtmp directory = /var/log/samba/wtmp
>
>then
>mkdir -p /var/log/samba/utmp
>mkdir -p /var/log/samba/wtmp
>touch /var/log/samba/utmp/utmpx
>touch /var/log/samba/wtmp/wtmpx
>
>This should do the trick. The command last -f /var/log/samba/wtmp/wtmpx shows 
>you the infos.
>
>br,
>Sebastian
>  
>


-- 
--------------------------------------------------------------------------------------------
Patrick DUBAU
IUFM d'Alsace -  Service Informatique : "Parfois détruire, souvent construire, toujours Servir"
200 avenue de Colmar 67100 STRASBOURG
Téléphone: 03.88.40.79.76
----------------------------------------------------------------------------------------------




More information about the samba mailing list