LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 02:01 PM   #1
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 73

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-05-2010, 12:19 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

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

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, 03:51 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:01 AM
top linux command reporting wrong values Vikneels Linux - General 1 05-21-2009 07:47 PM
Transmission incorrectly reporting port as closed... BallsOfSteel Linux - Software 1 08-19-2008 04:40 PM
df reporting incorrectly bigtl Linux - General 2 06-23-2005 06:47 AM
Mandrake incorrectly reporting HD size ZidanaX Mandriva 4 09-05-2003 03:49 AM


All times are GMT -5. The time now is 02:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration