LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 05-05-2013, 07:15 PM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 258

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

Code:
 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
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
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
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,159

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
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
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,032

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
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
kooru
Senior Member
 
Registered: Sep 2012
Location: Italy
Distribution: Slackware, NetBSD
Posts: 1,369
Blog Entries: 5

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

Code:
man who
man w
man top
man users
man ps
 
1 members found this post helpful.
Old 05-06-2013, 05:47 AM   #6
naveen.rathore
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

Thanks
 
Old 05-06-2013, 06:46 AM   #7
Altiris
Member
 
Registered: Mar 2013
Posts: 258

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


Reply

Tags
centos


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


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