Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-13-2006, 03:03 PM
|
#1
|
|
LQ Newbie
Registered: Apr 2005
Location: BRAZIL !!!
Distribution: Fedora4 :D
Posts: 17
Rep:
|
'Who' showing not logged in users
After I run 'who' as root I receive the list of logged on users, tough some of these are not really logged. What could be misconfigured ? I'm under Fedora Core 2 and mostly using ssh 3.6 to remote connect. Thnx.
|
|
|
|
03-13-2006, 04:22 PM
|
#2
|
|
Member
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290
Rep:
|
If you're using SSH to remote connect, as are other users, sometimes their sessions get disconnected yet SSH won't kill the session.
What you can do is either let init inherit the processes and reap them, or just setup your SSH config to kill off users that get disconnected or have not done anything on their sessions for a pre-determined amount of time.
|
|
|
|
03-15-2006, 06:34 AM
|
#3
|
|
LQ Newbie
Registered: Apr 2005
Location: BRAZIL !!!
Distribution: Fedora4 :D
Posts: 17
Original Poster
Rep:
|
I've tried this...
KeepAlive yes
ClientAliveInterval 60
ClientAliveCountMax 5
In the sshd_config file. But it didn't work out, so I guess it's not coming from ssh but from the system. What could it be ?
|
|
|
|
03-15-2006, 07:57 AM
|
#4
|
|
Member
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290
Rep:
|
Instead of "who", try using "w". It is a tad more informative, and it'll tell you how long someone's session has been inactive.
I've had it happen on my server where if I ran something within "screen", it left the user "logged in", and left a zombie process when it disconnected the screen.
You can go through and kill them manually (as I've found no way to avoid it if you have users improperly terminating sessions), or, if they've become zombies, let init reap them.
Also, while not the greatest practice, I just use "TCPKeepAlive yes". That seems to take care of when my PuTTY session gets whacked on accident.
|
|
|
|
03-15-2006, 08:18 AM
|
#5
|
|
LQ Newbie
Registered: Apr 2005
Location: BRAZIL !!!
Distribution: Fedora4 :D
Posts: 17
Original Poster
Rep:
|
Actually the table from 'who' is wrong, even with tcpkeepalive in sshd_config people are getting stuck and there are no processes to be killed...Guess it's the utmp file that's not being renewed, but why ? And how can I erase it ?
|
|
|
|
03-15-2006, 08:37 AM
|
#6
|
|
Member
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290
Rep:
|
Okay, I'm stumped now.
The last suggestion I have is just hit up http://www.google.com/linux.
Sorry I couldn't be of more help.
|
|
|
|
03-15-2006, 09:58 AM
|
#7
|
|
LQ Newbie
Registered: Apr 2005
Location: BRAZIL !!!
Distribution: Fedora4 :D
Posts: 17
Original Poster
Rep:
|
Thnx anyway, gonna Google around to see if i can find more about it. 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:38 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|