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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-23-2009, 04:46 AM
|
#1
|
Member
Registered: Aug 2009
Posts: 118
Rep:
|
monitor the users
Hi,
I would like to monitor the users activities.how to achieve that.
|
|
|
11-23-2009, 04:51 AM
|
#2
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
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
|
|
|
11-23-2009, 05:37 AM
|
#3
|
Member
Registered: Aug 2009
Posts: 118
Original Poster
Rep:
|
Quote:
Originally Posted by EricTRA
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?
|
|
|
11-23-2009, 05:53 AM
|
#4
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Have a look at the w command.
Just type in
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
to see options.
Kind regards,
Eric
|
|
|
11-23-2009, 06:21 AM
|
#5
|
Member
Registered: Aug 2009
Posts: 118
Original Poster
Rep:
|
Quote:
Originally Posted by EricTRA
Have a look at the w command.
Just type in
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
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.
|
|
|
11-23-2009, 05:31 PM
|
#6
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,443
|
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.
|
|
|
All times are GMT -5. The time now is 08:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|