How to use virus scanner on all CPanels accounts from command line

How to use virus scanner on all CPanels accounts from command line

1)      First login into WHM and go to WHM  >> Home >> cPanel  >> Manage Plugins and install ClamAV

2)      Then you can choose which services that you want to scan

a)       Scan Entire Home Directory

b)      Scan Mail

c)       Scan Public FTP Space

3)      After clicking and choosing from the services below, you can login into the server via root ssh

4)      If you like to scan all the Cpanel accounts which are located in the home directory you can use the below command:

/usr/local/cpanel/3rdparty/bin/clamscan –ri /home

 

*Please note that you can choose whichever directory you would like to scan

 

5)      If you would also like to remove any infected files in CPanel, you can add the below options to the above command:

 

/usr/local/cpanel/3rdparty/bin/clamscan  -ri  --remove /home