r5 - 08 Aug 2007 - 05:11:01 - SaravananSYou are here: ClamAV Wiki >  Main Web  > ClamAndFTP

-- 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


</center-->

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r5 < r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding ClamAV Wiki? Send feedback