LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 11-23-2009, 05:46 AM   #1
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Rep: Reputation: 15
Lightbulb monitor the users


Hi,
I would like to monitor the users activities.how to achieve that.
 
Old 11-23-2009, 05:51 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Barcelona, Spain
Distribution: LMDE + Linux 3.2.0-1.dmz.6-amd64, RHEL5+6, Mulltiple testing
Posts: 6,192
Blog Entries: 1

Rep: Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149
Hello,

It all depends on what you want to monitor. Do you want to monitor terminal access? Or what they are doing? Please provide more detail in regards to what exactly you want to monitor since there are so many things and options to do so.

Kind regards,

Eric
 
Old 11-23-2009, 06:37 AM   #3
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by EricTRA View Post
Hello,

It all depends on what you want to monitor. Do you want to monitor terminal access? Or what they are doing? Please provide more detail in regards to what exactly you want to monitor since there are so many things and options to do so.

Kind regards,

Eric
Thanks for reply.
yes i want their terminal access.can i find from starting o end session?
 
Old 11-23-2009, 06:53 AM   #4
EricTRA
Guru
 
Registered: May 2009
Location: Barcelona, Spain
Distribution: LMDE + Linux 3.2.0-1.dmz.6-amd64, RHEL5+6, Mulltiple testing
Posts: 6,192
Blog Entries: 1

Rep: Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149
Have a look at the w command.
Just type in
Code:
w
at the prompt as root and you'll see something like this:
Code:
 12:51:24 up 61 days,  2:46,  1 user,  load average: 0.71, 0.45, 0.43
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    por1040.tradisa. 12:51    0.00s  0.00s  0.00s w
It shows you who, on what terminal, from where, when they logged in, what they are doing and some cpu usage.
Run
Code:
man w
to see options.

Kind regards,

Eric
 
Old 11-23-2009, 07:21 AM   #5
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by EricTRA View Post
Have a look at the w command.
Just type in
Code:
w
at the prompt as root and you'll see something like this:
Code:
 12:51:24 up 61 days,  2:46,  1 user,  load average: 0.71, 0.45, 0.43
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    por1040.tradisa. 12:51    0.00s  0.00s  0.00s w
It shows you who, on what terminal, from where, when they logged in, what they are doing and some cpu usage.
Run
Code:
man w
to see options.

Kind regards,

Eric
Thanks for reply.
Is it possible to create the file ie what are the commands they executed.?can i use the history for that.after the user exit from the terminal,the history file automatiaclly send to mail id.

Last edited by nagavinodh; 11-23-2009 at 07:24 AM.
 
Old 11-23-2009, 06:31 PM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 5.7, Solaris 10
Posts: 10,994

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
If you want all their cmds, use rootsh http://sourceforge.net/projects/rootsh/.
A user can wipe their own history, so the std history is unreliable.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
*box users - system monitor epoo Linux - Software 1 03-23-2007 03:58 PM
monitor users activites Dogar Linux - General 1 03-09-2007 05:12 PM
how do users adjust their monitor screen ?? alred General 10 11-09-2006 09:23 PM
how monitor users? Barq Linux - Networking 1 04-05-2006 09:48 AM
Monitor indiviual users' network traffic from my firewall ? Dark Carnival Linux - Security 1 09-11-2005 12:21 PM


All times are GMT -5. The time now is 01:14 AM.

Main Menu
 
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
Open Source Consulting | Domain Registration