LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-13-2006, 03:03 PM   #1
eluzi
LQ Newbie
 
Registered: Apr 2005
Location: BRAZIL !!!
Distribution: Fedora4 :D
Posts: 17

Rep: Reputation: 0
'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.
 
Old 03-13-2006, 04:22 PM   #2
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
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.
 
Old 03-15-2006, 06:34 AM   #3
eluzi
LQ Newbie
 
Registered: Apr 2005
Location: BRAZIL !!!
Distribution: Fedora4 :D
Posts: 17

Original Poster
Rep: Reputation: 0
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 ?
 
Old 03-15-2006, 07:57 AM   #4
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
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.
 
Old 03-15-2006, 08:18 AM   #5
eluzi
LQ Newbie
 
Registered: Apr 2005
Location: BRAZIL !!!
Distribution: Fedora4 :D
Posts: 17

Original Poster
Rep: Reputation: 0
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 ?
 
Old 03-15-2006, 08:37 AM   #6
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
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.
 
Old 03-15-2006, 09:58 AM   #7
eluzi
LQ Newbie
 
Registered: Apr 2005
Location: BRAZIL !!!
Distribution: Fedora4 :D
Posts: 17

Original Poster
Rep: Reputation: 0
Thnx anyway, gonna Google around to see if i can find more about it.
 
  


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
i'm showing 3 on me logged in acithium Linux - Software 5 01-13-2006 05:02 PM
why so many logged in users? alagenchev Linux - Security 2 03-24-2005 06:19 PM
is last -i showing remote user logged in? b_s Linux - Security 8 03-05-2005 12:32 AM
No Users logged in X kaise_sose Linux - Software 2 10-19-2004 02:57 AM
"who" showing users that aren't logged on MS3FGX Slackware 13 10-06-2004 01:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:23 AM.

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