Install ClamAV and run through SSH

Install ClamAV and run through SSH
Name: Install ClamAV and run through SSH
Submitted: 18 Apr 2012
Submitter: www.yourforum.gr
Category: cPanel Tutorials
Views: 2306
Rating: 0
Description: How to install Clam Antivirus on a WHM environment and then run through SSH


Directions

Installing ClamAV through WHM :

CODE
WHM > Manage Plugins > ClamAV > Install and Keep Updated


once the process is finished, use SSH and run the following commands respectively:

1. Scan /home

Canonical Scan

CODE
clamscan -ir /home -l clamscanreport.txt


Quiet Scan

CODE
clamscan -r --quiet /home  -l clamscanreport.txt



2. Scan /tmp

Canonical Scan

CODE
clamscan -ir /tmp -l clamscanreport.txt


Quiet Scan

CODE
clamscan -r --quiet /tmp  -l clamscanreport.txt


3. Scan /home and clean infected files

CODE
clamscan -r --quiet /home --remove=yes -l clamscanreport.txt


4. Scan /tmp and clean infected files

CODE
clamscan -r --quiet /tmp --remove=yes -l clamscanreport.txt


For further switches, type via SSH

CODE
man clamscan