Register a domain and help support LQ
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, 06:15 PM   #1
Registered: Mar 2013
Posts: 424

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, 06:19 PM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.7, Centos 5.10
Posts: 16,634

Rep: Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149
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, 07:34 PM   #3
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,265

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
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, 08:41 PM   #4
Senior Member
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,072

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
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, 03:05 AM   #5
Senior Member
Registered: Sep 2012
Location: Italy
Distribution: Slackware, NetBSD
Posts: 1,383
Blog Entries: 5

Rep: Reputation: 272Reputation: 272Reputation: 272
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, 04: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, 05:46 AM   #7
Registered: Mar 2013
Posts: 424

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

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