File Manager Issue

 

 

error
================
The file manger in cpanel is showing the error ": Virus
Detected; File not Uploaded! (Access denied. ERROR)" during file upload.

 

description
==================
This is caued by clamd running as "clamav" rather than root.

root@ []# ps uaxww |grep clam
clamav 8474 0.0 0.6 48004 26368 ? Ss Jul18 0:04 /usr/sbin/clamd

clamd must run as root (the way cPanel sets it up) so that it can scan the
files owned by any user on the system, otherwise it does not have enough
permissions and clamdscan returns an error which the filemanager interprets as
having found a virus.

solution
=================
kill the process and start clamd
vi /etc/clamd.conf
change user ......... to root

# Run as a selected user (clamd must be started by root).
# Default: disabled
User root