Results 1 to 2 of 2
Hi Everybody,
How can I monitor a user's ftp transactions (downloads/uploads) from the client side as at server side /var/log/xferlog maintains ftp transactions.
Here I want to observe a particular ...
- 01-03-2007 #1Linux Newbie
- Join Date
- Jul 2004
- Posts
- 143
ftp logging at client side
Hi Everybody,
How can I monitor a user's ftp transactions (downloads/uploads) from the client side as at server side /var/log/xferlog maintains ftp transactions.
Here I want to observe a particular user's downloads and uploads.
It is possible, Is Linux maintains any logs for that.
Please help me.
Thanks & Regards,
Mummaneni.
- 01-17-2007 #2Linux User
- Join Date
- Jan 2007
- Location
- cleveland
- Posts
- 452
OK, here's one way: CBE (crude but effective)
make a systemwide alias/function
alias sftp='sftp -vv 2>>/root/sftp.log'
to the user, this looks like ordinary sftp; yet it
writes lots of info including file transfer sizes
you could use awk to get a daily/weekly sum
more secure would be to get the source for sftp, and
rewrite main() a little, so it did this logging for
you.the sun is new every day (heraclitus)


Reply With Quote