Manual scan with ClamAV on CentOS 6

Operating System & Version
CentOS 6.10 xen hvm
cPanel & WHM Version
v86.0.29

GoWilkes

Well-Known Member
Sep 26, 2006
554
21
168
cPanel Access Level
Root Administrator
It's been a long time since I had to use this, but due to some recent cracker activity I reinstalled it via WHM on CentOS 6.

I expected to get an email report on anything it found, but so far haven't gotten anything. Since it takes up a lot of space and makes the server run slow, I'd like to manually run a scan via SSH. Then if I'm all clear I could just remove it.

I tried the instructions I found here, but running "freshclam" or "clamscan -r /home" just returned an error:


I don't see any files with these names under /usr/ or /usr/bin/, either, so I'm not even sure if it's really installed.

Any suggestions on how to see if it's installed and running, how to run a manual scan, or how to configure it to get a regular report?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,257
313
Houston
Hi @GoWilkes

Since you're using the cpanel-clamav package you'd need to enter teh full path:


/usr/local/cpanel/3rdparty/bin/freshclam
/usr/local/cpanel/3rdparty/bin/clamscan
 

GoWilkes

Well-Known Member
Sep 26, 2006
554
21
168
cPanel Access Level
Root Administrator
Thanks, Lauren! I found the files at the directory you gave :)

How do I run it, though? From SSH as root I tried:

Code:
# cd /usr/local/cpanel/3rdparty/bin

# freshclam
-bash: freshclam: command not found

# sudo freshclam
sudo: freshclam: command not found

# clamscan -r /home
-bash: clamscan: command not found

# clamdscan -r /home
-bash: clamdscan: command not found