Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-05-2013, 07:15 PM   #1
Registered: Mar 2013
Posts: 555

Rep: Reputation: Disabled
Is someone monitoring my linux box?

I have a PC running CentOS 6.4 and I was curious as to how long I was running this thing for. I ran the command uptime on the terminal and I saw how many days it was up for but then it said 2 users were on. I thought this may have been normal because I was logged into a regular account and I also had root access in the terminal. HOWEVER, after I exited a little while after I did it again and it said 3 users were logged in...whats going on is someone viewing my computer or something? I am the only user logged in

 19:14:23 up 7 days, 52 min,  3 users,  load average: 2.87, 1.73, 0.97
Old 05-05-2013, 07:19 PM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Run the top cmd; it'll show various stuff, inc the current processes.
Its likely a cron job or some such, that's creating the other 'users'
Try the 'who' cmd or 'users'.
Old 05-05-2013, 08:34 PM   #3
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
I would also recommend looking at the "w" and "last" commands, in addition to those suggested by chrism01. If you have multiple terminal windows open, those count as additional user logins, which may explain the behavior that you're seeing.
Old 05-05-2013, 09:41 PM   #4
Senior Member
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,208

Rep: Reputation: 341Reputation: 341Reputation: 341Reputation: 341
You are going to have one logged in user showing for your GUI, and then one for each terminal window you have open. That's just for starters.
1 members found this post helpful.
Old 05-06-2013, 04:05 AM   #5
Senior Member
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 273Reputation: 273Reputation: 273
haertig could be right
anyway i suggest these commands to have more info:

man who
man w
man top
man users
man ps
1 members found this post helpful.
Old 05-06-2013, 05:47 AM   #6
LQ Newbie
Registered: Jan 2013
Posts: 6

Rep: Reputation: Disabled
check ps -ef |grep ssh
ps -ef |grep scp

it will show procedd id of any task that is ruing kill it by kill -9 PID

Old 05-06-2013, 06:46 AM   #7
Registered: Mar 2013
Posts: 555

Original Poster
Rep: Reputation: Disabled
Thanks everyone, I will test em out later today!



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
monitoring a linux box mmosier Linux - Newbie 2 07-15-2010 11:16 PM
create small linux box for environment monitoring? vbsaltydog Linux - Hardware 7 03-15-2009 12:36 PM
Monitoring SSH usage on my box bucovaina78 Linux - Security 12 11-18-2008 02:01 AM
Accessing WevDav directory on linux box A from linux box B using Ant script. panayoti Linux - Newbie 0 10-08-2006 12:44 AM
setting up a monitoring box fretbrner Linux - Networking 1 02-25-2005 04:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:49 PM.

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