[Samba] UTMP duplicated entries

Fabiano Caixeta Duarte fabiano at fearp.usp.br
Fri Sep 23 15:10:28 GMT 2005


On Fri, 23 Sep 2005, Andrew Bartlett wrote:

>> Yeah! Sorry! I am talking about login sessions. Does samba logs on utmp
>> all kind of sessions or just login sessions?
>
> It logs file-share connections, as it doesn't really have the info for
> client-side login sessions.
>
> Andrew Bartlett

But I still think that we have a problem.

When a domain user logs on my domain, the workstation makes a connection 
to the logon path / logon drive. As you said, this connection is logged on 
utmp.

When the user logs out, the connection to that share is closed. Shouldn't 
it have been logged as well on utmp?

Sometimes it logs... but sometimes don't.

Take a look:

liana           smb/2    192.168.0.207  Fri Sep  2 18:43 - 00:52  (06:08)
rodrigobaso     smb/25   192.168.0.207  Fri Sep  2 17:11 - 18:11  (00:59)
josianealomino  smb/28   192.168.0.207  Fri Sep  2 15:54 - 16:58  (01:03)
liana           smb/73   192.168.0.207  Fri Sep  2 14:56 - 15:54  (00:58)
rodrigobaso     smb/57   192.168.0.207  Fri Sep  2 14:09 - 01:00  (10:50)
rodrigobaso     smb/57   192.168.0.207  Fri Sep  2 14:09 - 14:09  (00:00)
mcicogna        smb/29   192.168.0.207  Fri Sep  2 13:05 - 13:56  (00:51)
andersongali    smb/29   192.168.0.207  Fri Sep  2 09:12 - 13:04  (03:51)
cunha           smb/2    192.168.0.207  Fri Sep  2 08:53 - 08:55  (00:02)
marcelomb       smb/15   192.168.0.207  Fri Sep  2 08:14 - 08:21  (00:07)
tesia           smb/8    192.168.0.207  Fri Sep  2 07:48 - 01:00  (17:11)
tesia           smb/8    192.168.0.207  Fri Sep  2 07:48 - 07:48  (00:00)

tesia logs on (access to her homedir) at 07:48 from 192.168.0.207 and 
before she ends the share-session (Sep 3, 01:00) marcelomb, from the same 
machine (locally) logs on.

What can I do to have this working everytime? Some smb.conf option?

Thanks a lot!

Fabiano


More information about the samba mailing list