LinuxQuestions.org
Visit Jeremy's Blog.
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, 04: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, 04: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: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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, 05: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, 05: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: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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, 06: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 06:24 AM.
 
Old 11-23-2009, 05:31 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,238

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
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 01:59 PM
*box users - system monitor epoo Linux - Software 1 03-23-2007 02:58 PM
monitor users activites Dogar Linux - General 1 03-09-2007 04:12 PM
how do users adjust their monitor screen ?? alred General 10 11-09-2006 08:23 PM
how monitor users? Barq Linux - Networking 1 04-05-2006 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:10 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
Open Source Consulting | Domain Registration