Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux 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.

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    477
    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •