The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

pure-ftpd and proftpd

Discussion in 'General Discussion' started by Radio_Head, Nov 12, 2002.

  1. Radio_Head

    Radio_Head Well-Known Member

    Joined:
    Feb 15, 2002
    Messages:
    2,051
    Likes Received:
    1
    Trophy Points:
    38
    Which are the differences between pure-ftpd and proftpd ?
    Which is more safe ?

    Thanks !
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    Listed in WHM for build 38 edge it lists the following.

    Proftpd
    Advantages
    * Anonymous Ftp Bandwidth Reporting
    * Access Logs for Ftp in cPanel
    Disadvantages
    * Large Memory Footprint
    * Slow

    Pure-ftpd
    Advantages
    * Faster Login Time
    * Smaller Memory Footprint
    * Allows Virtual Access on any ip address
    * Better Security Model
    * Deals better with Software Raid systems
    Disadvantages
    * No cPanel Access Log or Bandwidth Stats
     
  3. Radio_Head

    Radio_Head Well-Known Member

    Joined:
    Feb 15, 2002
    Messages:
    2,051
    Likes Received:
    1
    Trophy Points:
    38
    thanks . Impossibility to track ftp anonymous bandwith could be a problem with Pure-ftpd .
     
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    This may help as a start.

    This is not perfect as I am not a programmer. Maybe someone can morph this into real code.

    Basically this script is doing two things, first it goes throught the messages log and copies out each users info for pure-ftpd and puts it in there tmp directory. The second part looks for anonymous ftp logins and copies that info to a file called anon_ftplog

    [SCRIPT]

    #!/bin/sh
    cd /var/cpanel/users
    for file in *
    do
    cd /home/$file/tmp
    grep pure-ftpd /var/log/messages|grep $file &ftplog
    chown $file:$file /home/$file/tmp/ftplog


    if test ! -d '/var/log/ftp'; then
    mkdir '/var/log/ftp'
    fi
    cd /var/log/ftp
    grep pure-ftpd /var/log/messages |grep Anonymous &anon_ftplog
    done
    [ENDSCRIPT]

    Thoughts and suggestions are welcome. I have tested this on a couple of servers and have not had anything bad happen. :p
     
Loading...

Share This Page