LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 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
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor indiviual users' network traffic from my firewall ? Dark Carnival Linux - Security 2 04-01-2016 02:59 PM
*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


All times are GMT -5. The time now is 12:42 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration