-   Linux - Newbie (
-   -   Is someone monitoring my linux box? (

Altiris 05-05-2013 06:15 PM

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

chrism01 05-05-2013 06:19 PM

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'.

btmiller 05-05-2013 07:34 PM

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.

haertig 05-05-2013 08:41 PM

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.

kooru 05-06-2013 03:05 AM

haertig could be right ;)
anyway i suggest these commands to have more info:


man who
man w
man top
man users
man ps

naveen.rathore 05-06-2013 04:47 AM

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


Altiris 05-06-2013 05:46 AM

Thanks everyone, I will test em out later today!

All times are GMT -5. The time now is 05:07 PM.