Infoaddict Just another site for Infoaddict's

24Nov/110

clamav for linux

Posted by Infoaddict

1. # sendmail -d0 sendmail.cf

#/etc/init.d/sendmail restart

15. # cd /etc/init.d
# vi clamav.sh

#!/bin/bash
#for clamd and clamav-milter
/usr/local/sbin/clamd
sudo /usr/local/sbin/clamav-milter --max-children=2 -olb --timeout=0 local:/var/run /clamav-milter.sock
#for freshclam as a daemon
/usr/local/bin/freshclam -d

16. save it. Then make it executable,

# chmod u+x clamav.sh

Then run it and check the process,

# ./clamav.sh
# ps ax | grep clam

17.# cd /etc/rc.d/rc3.d
# ln -s /etc/init.d/clamav.sh S80clamav

Reboot and check process and log files so that your clamav, freshclam and sendmail are running properly.

Q. How to completely remove Clamav antivirus ?

1. rm -rf /usr/local/src/clamav-87.3

2. cd /usr/local/sbin

3. rm -rf clamd*

4. cd /usr/local/bin

5. rm -rf filename*

6. service sendmail stop

7. killall clamd

8. killall freshclam -d or freshclam

9. ps -aux

post your mail address i will send you the clamav file..... 😀

Filed under: RedHat Linux No Comments