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@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@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
On Thu, 2003-10-09 at 12:02, drgn65@ufl.edu 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. > > [root@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@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 will happen.> Any help? Is it like this in all versions of samba, including 3.0? > > Thanks for the help! > > Peter Shull-- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20031010/106e75bd/attachment.bin
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 drgn65@ufl.edu wrote: | [root@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. Try usetting a deadtime. See smb.conf(5) for details. cheers, jerry ~ ---------------------------------------------------------------------- ~ Hewlett-Packard ------------------------- http://www.hp.com ~ SAMBA Team ---------------------- http://www.samba.org ~ GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc ~ "You can never go home again, Oatman, but I guess you can shop there." ~ --John Cusack - "Grosse Point Blank" (1997) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/huQYIR7qMdg1EfYRAo8oAKCD0b6vJYcQI3sYRlrOFqXZfSV6QgCeKAkQ 2RU6BJZr2bJ7Q2NCQ2SV8C8=Y3Dk -----END PGP SIGNATURE-----