--
SaravananS - 26 Jul 2007
Using
ClamAV + pure-ftpd ( www.pureftpd.org )in our Fedora 6 Intranet ftp server. It works well, which is having nearly 400 user accounts for students and staff.
Example (We can even write more advance script)
Write the below 2 lines and create a shell script /etc/pure-ftpd/upload.sh (you can name as you like)
#!/bin/sh
/usr/local/bin/clamdscan --remove --quiet --no-summary "$1"
I assume that your pure-ftpd is configured to start automatically when your system boots.
Then create a cron job to start when system boots (I use webmin to create this) with the command as below
/usr/sbin/pure-uploadscript -B -r /etc/pure-ftpd/upload.sh
If a file with virus is uploaded, automatically it will be deleted and your FTP server will be free of virus files
Have a nice day
Works also on Ubuntu 6.06 but then you have to create a new file /etc/pure-ftpd/conf/CallUploadScript with just the word "yes" in it. This makes pure-ftpd start with the ability to use pure-uploadscript at boot.
Then create the cron job as mentioned above.
Greetings
Thanks Mr.Stefan de backer for correcting.
CallUploadScript yes
should be included in
/etc/pure-ftpd/pure-ftpd.conf
in Fedora7 also. I had forget to mention that in my posting.
Have a nice day
Debian lenny Using ClamAV + pure-ftpd
1. Create file /etc/pure-ftpd/conf/CallUploadScript
Write:
YES
2. Create file /etc/pure-ftpd/clamav_check.sh
Write:
#!/bin/sh
/usr/bin/clamdscan --remove --quiet --no-summary "$1"
3. Write in /etc/default/pure-ftpd-common
UPLOADSCRIPT=/etc/pure-ftpd/clamav_check.sh
4 Restart pure-ftpd:
/etc/init.d/pure-ftpd-mysql restart