Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-20-2006, 04:31 PM
|
#1
|
|
Member
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 222
Rep:
|
monitor user activity
Hi,
I am wondering if there is any easy to use tool, that can monitor user activity constantly. Something similar to gkrelm but for user activity. I would like to know who is logged in, how are they logged in(sftp,ssh, terminal), their traffic and activities. Is there anything like this available out there?
Thank you for your help.
|
|
|
|
01-20-2006, 05:19 PM
|
#2
|
|
Member
Registered: May 2004
Distribution: FreeBSD 7, Debian "Squeeze", OpenBSD 4.5
Posts: 167
Rep:
|
The who and w commands provide information about user activities.
|
|
|
|
01-20-2006, 08:16 PM
|
#3
|
|
Member
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 222
Original Poster
Rep:
|
true that, but do you think they show sftp activity and bandwith?
I guess I also need something that just sits on desktop or in console and shows in real time the info kind of like top.
Last edited by alagenchev; 01-20-2006 at 08:17 PM.
|
|
|
|
01-20-2006, 09:33 PM
|
#4
|
|
Member
Registered: May 2004
Distribution: FreeBSD 7, Debian "Squeeze", OpenBSD 4.5
Posts: 167
Rep:
|
It should work for SFTP, since that's a subset of SSH.
You could use a BASH script to make it into a display of sorts :
Quote:
#!/bin/bash
#Simple script to display a monitor of user activity
#Ctrl-C Aborts
X=0
while [ $X -le 20 ]
do
w
sleep 5
clear
done
|
As for bandwidth, do you mean network traffic?
|
|
|
|
01-20-2006, 09:58 PM
|
#5
|
|
Member
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 222
Original Poster
Rep:
|
hmm, very interesting, it works for ssh, but not for sftp. Yes, I mean network traffic, not bandwith. Do you have any other suggestions? Thank you for helping me out with this. I have a file server, and I would like to be able to tell when I have users logged on, and who's downloading the most. Thanks once again
Could you also explain this line:
while [ $X -le 20 ]
The part i don't understand is $X
I also forgot to let you know that I just tested it by connecting myself with sftp
Last edited by alagenchev; 01-20-2006 at 10:02 PM.
|
|
|
|
01-20-2006, 10:02 PM
|
#6
|
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
Quote:
|
Originally Posted by alagenchev
Hi,
I am wondering if there is any easy to use tool, that can monitor user activity constantly. Something similar to gkrelm but for user activity. I would like to know who is logged in, how are they logged in(sftp,ssh, terminal), their traffic and activities. Is there anything like this available out there?
Thank you for your help.
|
Don't know of any *one* utility that can do that offhand...
Though for detailed accounting of user activities you might want to try the psacct package.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:56 AM.
|
|
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
|
|