[Samba] IPC connections and utmp

drgn65 at ufl.edu drgn65 at ufl.edu
Thu Oct 9 02:02:31 GMT 2003


Hi,

I am running Samba version 2.2.5 with utmp turned on.  I have a problem with
utmp and not displaying who is currently logged in.  The basic idea is that
even though a user has logged off the computer (win2k pro) a connection to
IPC$ remains.  It gives this.

[root at lifesaver root]# smbstatus -u scott

Samba version 2.2.5
Service      uid      gid      pid     machine
----------------------------------------------
IPC$         scott    ops      19247   tech3    (192.168.0.202) Mon Oct  6
07:19:46 2003
IPC$         scott    ops      19247   tech3    (192.168.0.202) Wed Oct  8
08:09:49 2003

Scott is obviously logged off.  But since the connection is still there, it
remains in utmp for a LONG time or until someone shuts the computer down (or
restart).

[root at lifesaver root]# w
  9:51pm  up 20 days, 15:12,  3 users,  load average: 0.08, 0.09, 0.09
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
scott    smb/1    192.168.0.202     7:14am  0.00s  1:56m  0.02s  smbd -D
scott    smb/2    192.168.0.202    Mon 6am  0.00s  1:56m  0.02s  smbd -D

Thats what ends up in my utmp.  So, I very rarely have an accurate picture
of who is on the network without doing smbstatus -u user on basically
everyone. :(

I understand the IPC connection probably needs to stay open.  (I don't fully
know why).  Is this problem fixed in later versions of samba?  I am running
a moderately old version.

Oh yea, 1 other thing.  kill -9 pid of a "ghosted IPC connection" is
incredibly bad.  The entry seems to want to stay in utmp until reboot.  :(

Any help?  Is it like this in all versions of samba, including 3.0?

Thanks for the help!

Peter Shull




More information about the samba mailing list