LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-30-2008, 10:24 AM   #1
tpmadigan
LQ Newbie
 
Registered: Jul 2006
Location: Cheese steak capital of the world!
Distribution: RHEL4, RH9, SuSE 10.0
Posts: 8

Rep: Reputation: 0
defunct/inactive telnet sessions


Fellow Linux Admins:

I am experiencing a problem with the "who -u" command in that it is displaying sessions that are no longer signed on to the server. Consider the following output from the "who -u" command:


gooduser pts/1 Jan 30 08:00 . 3173 (192.168.1.106)
intv1407 pts/62 Jan 29 18:45 ? 17430 (DTCLV01.somecompany.com)
intv1207 pts/29 Jan 29 17:29 ? 11714 (DTCLV01.
somecompany.com)
intv1208 pts/49 Jan 29 17:32 ? 12459 (DTCLV01.
somecompany.com)
intv1215 pts/75 Jan 29 17:35 ? 13766 (DTCLV01.
somecompany.com)
intv1415 pts/14 Jan 29 19:32 ? 19155 (DTCREAD.
somecompany.com)

With the exception of "gooduser", none of the other users that are displayed are actually logged in. If I perform a "ps -fp" on any of the processes listed in the 4th column (except for 3173), no details are shown. If I attempt to "kill -9" any of those processes, I receive output similar to:

[tom@cascadia ~]$ kill -9 17430
bash: kill: (17430) - No such process
[tom@cascadia ~]$


How can I remove those "dead" processes from the listing preferably without rebooting the server? This is a "24 x 7" never-shut-down servers that should not be rebooted unless the end of the world is near! Please note that this server is running Red Hat Enterprise 4 AS.

Many thanks in advance for your help!



 
Old 02-03-2008, 09:02 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Those are zombie processes. The telnet session has died, but there
are still processes running in subshells. In other words, someone
started a process while logged in through telnet and ended their session
without killing all their processes first. If you find and kill the
other processes, the zombie telnet sessions will disappear.
 
Old 02-04-2008, 08:56 AM   #3
tpmadigan
LQ Newbie
 
Registered: Jul 2006
Location: Cheese steak capital of the world!
Distribution: RHEL4, RH9, SuSE 10.0
Posts: 8

Original Poster
Rep: Reputation: 0
As luck would have it, the sessions disappeared all on their own, so the subprocesses owned by those sessions must have terminated or been killed somehow. I'll keep a note of your suggestions for the next occurrence of this problem. Many, many thanks for your help. Happy Linux-ing!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Telnet Sessions rjcrews General 4 07-24-2005 04:07 PM
No. of telnet sessions zatka Linux - Networking 2 01-16-2005 02:36 AM
Commands not available under telnet sessions? paranoidpenguin Linux - Networking 4 09-23-2004 09:11 PM
Logging telnet sessions Cynric Linux - General 2 08-14-2004 01:39 AM
telnet sessions acid_kewpie Linux - Newbie 7 07-17-2001 02:35 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration