[Samba] IPC connections and utmp
abartlet at samba.org
Fri Oct 10 02:43:19 GMT 2003
On Thu, 2003-10-09 at 12:02, drgn65 at ufl.edu wrote:
> 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
> [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.
No - as the user is still logged in - there is no way we can tell that
they won't open up a file-share again. Yes, it's a real pain, but
unless you can convince the client to really log off, there isn't much
we can do...
> 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. :(
Standard utmp behaviour - if you kill -9 your login process, the same
> Any help? Is it like this in all versions of samba, including 3.0?
> Thanks for the help!
> Peter Shull
Andrew Bartlett abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team abartlet at samba.org
Student Network Administrator, Hawker College abartlet at hawkerc.net
http://samba.org http://build.samba.org http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20031010/106e75bd/attachment.bin
More information about the samba