On Thu, 2003-10-09 at 12:02, [EMAIL PROTECTED] wrote: > 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. > > [EMAIL PROTECTED] 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). > > [EMAIL PROTECTED] 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 will happen. > Any help? Is it like this in all versions of samba, including 3.0? > > Thanks for the help! > > Peter Shull -- Andrew Bartlett [EMAIL PROTECTED] Manager, Authentication Subsystems, Samba Team [EMAIL PROTECTED] Student Network Administrator, Hawker College [EMAIL PROTECTED] http://samba.org http://build.samba.org http://hawkerc.net
signature.asc
Description: This is a digitally signed message part
-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
