Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
Which are the differences between pure-ftpd and proftpd ?
Which is more safe ?

Thanks !
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
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
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
thanks . Impossibility to track ftp anonymous bandwith could be a problem with Pure-ftpd .
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
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