"Ghost" connections
[root@li5-11 root]# who
root pts/47 Sep 17 17:06
irc pts/48 Sep 17 18:45 (4.10.167.86)
root pts/50 Sep 17 19:13 (4.10.167.86)
irc pts/51 Sep 17 19:26
siggo pts/57 Sep 17 20:26
root pts/58 Sep 17 20:30
night pts/61 Sep 17 20:46
root pts/62 Sep 17 20:49
night pts/73 Sep 18 13:41 (acc8c0f9.ipt.aol.com)
root pts/74 Sep 18 15:27 (4.10.167.86)
[root@li5-11 root]#
How the heck do I get rid of them without having to reboot?!?! I have killed all of the processes these ghost connections were running, I have restarted the ssh daemon several times, I have went in and enabled "KeepAlive" and restarted also. They still wont go away.
Any ideas guys?
2 Replies
To fix without rebooting, log everyone off the machine except for one instance of root. (I tried it on the Linode virtual console, not on a terminal.) and do
cat /dev/null > /var/run/utmp
Log out and then log back in again - who
will report correct information.
thanks!