LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2010, 01:01 PM   #1
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Rep: Reputation: 16
'who' command incorrectly reporting?


SERVER INFO:
[root@bml pts]# uname -a
Linux bml.xxx.co.uk 2.4.18-6mdk #1 Fri Mar 15 02:59:08 CET 2002 i686 unknown

Hi all,

Can someone explain exactly how 'who' builds its user list?

I have a problem where it's listing a user on my server, but I can not kill them.

# [root@bml pts]# who | sort
...
simons pts/52 Nov 2 12:33 (derby1)
...

# [root@bml pts]# ps -ef | grep simons
root 6199 3049 0 17:47 pts/0 00:00:00 grep simons

# [root@bml pts]# ps -ef | grep pts/52
root 6391 3049 0 17:48 pts/0 00:00:00 grep pts/52

This user appears to have no processes running, yet who is listing them. How can I remove them from the 'who' list?

Thanks in advance.
 
Old 11-04-2010, 11:19 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What does
Code:
lsof | grep "pts/52"
tell you?
 
Old 11-05-2010, 06:20 AM   #3
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Original Poster
Rep: Reputation: 16
Ah damn, some other techie decided to reboot the server to fix the problem (!) so I can't follow it up (until it maybe happens again!).

Out of interest though, I tried that command but it doesn't look like this version of linux supports it:

Code:
[root@bml root]# lsof | grep "pts/20"
bash: lsof: command not found
[root@bml root]# man lsof
No manual entry for lsof
[root@bml root]#
Thanks for your assistance anyway
 
Old 11-05-2010, 02:51 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by elliot01 View Post
Ah damn, some other techie decided to reboot the server to fix the problem (!) so I can't follow it up (until it maybe happens again!).

Out of interest though, I tried that command but it doesn't look like this version of linux supports it:

Code:
[root@bml root]# lsof | grep "pts/20"
bash: lsof: command not found
[root@bml root]# man lsof
No manual entry for lsof
[root@bml root]#
Thanks for your assistance anyway

You'd probably just need to install the package, I'm
fairly certain that Mandrake supplies a package for it,
it's such a frequently used tool ...


Cheers,
Tink
 
  


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
PATH set incorrectly and lost bash: vi command... how can I change .bashrc? Lindz Linux - Newbie 10 09-23-2009 05:01 AM
top linux command reporting wrong values Vikneels Linux - General 1 05-21-2009 06:47 PM
Transmission incorrectly reporting port as closed... BallsOfSteel Linux - Software 1 08-19-2008 03:40 PM
df reporting incorrectly bigtl Linux - General 2 06-23-2005 05:47 AM
Mandrake incorrectly reporting HD size ZidanaX Mandriva 4 09-05-2003 02:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:32 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