DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-01-10 01:59:54

halfsoul
Member
Registered: 2008-01-28
Posts: 57

Watching FTP activity

Hello,
I am trying to figure out a way to accomplish two things:
1. Watch FTP activity
2. Review FTP logs

I know there have been some discussions about FTP logging before, so what I really want to focus on is 1. Watching.

According to the pure-ftpd website:

...to watch who’s doing what, the pure-ftpwho command shows a table with currently active sessions, how much bandwidth is taken by every user, what files they are uploading or downloading, where they are coming from, etc.

According to the README:

Since 0.97.7, you can type 'pure-ftpwho' at any time to watch current active
sessions.

When I type pure-ftpwho, I get:

-sh: pure-ftpwho: not found

Also in the README:

If typing 'pure-ftpwho' answers 'Command not found', you have to add
/usr/local/sbin in your PATH environment variable.

How do I do accomplish this?

Offline

 

#2 2010-01-10 11:31:11

bjby
Member
Registered: 2009-02-22
Posts: 265

Re: Watching FTP activity

http://linux.die.net/man/8/pure-ftpd


-O format:log file
    Record all file transfers into a specific log file, in an alternative format. Currently, three formats are supported : CLF, Stats, W3C and xferlog.
    If you add
    -O clf:/var/log/pureftpd.log
    to your starting options, Pure-FTPd will log transfers in /var/log/pureftpd.log in a format similar to the Apache web server in default configuration.
    If you add
    -O stats:/var/log/pureftpd.log
    to your starting options, Pure-FTPd will create accurate log files designed for traffic analys software like ftpStats.
    If you add
    -O w3c:/var/log/pureftpd.log
    to your starting options, Pure-FTPd will create W3C-conformant log files.
    For security purposes, the path must be absolute (eg. /var/log/pureftpd.log, not ../log/pureftpd.log).

Offline

 

#3 2010-01-10 20:44:27

halfsoul
Member
Registered: 2008-01-28
Posts: 57

Re: Watching FTP activity

bjby,
That will help with #2, so thank you.

As I said in my original post:

what I really want to focus on is 1. Watching

Is there anyone who can help me with this?

Thanks.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB