Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: "Ghost" connections
PostPosted: Sat Sep 18, 2004 3:28 pm 
Offline
Junior Member

Joined: Sat Sep 11, 2004 11:43 pm
Posts: 49
I have ghost connections that havent disconnected even tho the users have logged off:

[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?


Top
   
 Post subject:
PostPosted: Sat Sep 18, 2004 5:59 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
There is just some rubbish left in /var/run/utmp, where processes have failed to clear up after themselves. Usually this happens if you have had zombies or stuff you had to kill for whatever reason.

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
Code:
cat /dev/null > /var/run/utmp


Log out and then log back in again - `who` will report correct information.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Sat Sep 18, 2004 6:49 pm 
Offline
Junior Member

Joined: Sat Sep 11, 2004 11:43 pm
Posts: 49
awesome. worked perfectly.

thanks!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group