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.
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.
|
 |
01-20-2006, 04:31 PM
|
#1
|
Member
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223
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: 223
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: 223
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.
|
|
|
All times are GMT -5. The time now is 06:36 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
|
|