Hi,

have You checked the rights of the clamd process so that clamonacc has permissions to scan /serverdata? Has /serverdata different permissions to /home?
What value has the "User" parameter in clamd.conf? If not root, and if You have vscan set, has vscan the right to scan /serverdata?
Which release of clamav are You using?

Thanks
Martin



Von:        "Shivananda Shiragavi via clamav-users" <clamav-users@lists.clamav.net>
An:        clamav-users@lists.clamav.net
Kopie:        "Shivananda Shiragavi" <sshiragavi@gmail.com>
Datum:        29.12.2020 11:13
Betreff:        [clamav-users] Fwd: Error while scanning directory other than /home directory
Gesendet von:        "clamav-users" <clamav-users-bounces@lists.clamav.net>




Hi All,

I am trying to enable clamonacc in my machine for /home its working fine but when I am trying to mention some other directory it is throwing the following error:

ClamWorker: performing scanning on file '/serverdata/eicar.com.txt'
/serverdata/eicar.com.txt: Can't open file or directory ERROR
ClamMisc: internal issue (client failed to scan)
ClamWorker: scan failed with error code 32


clamd.conf:
OnAccessIncludePath /serverdata
OnAccessPrevention yes
OnAccessExcludeUname clamav
OnAccessExcludeRootUID no
OnAccessDisableDDD no


Could someone please help me to fix this issue?

--
Shivananda Shiragavi
919860394833


_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://urldefense.com/v3/__https://lists.clamav.net/mailman/listinfo/clamav-users__;!!PvTMCG4!fkwxLE5iMS33hbYPL0ZOFZllRbZKjrgC8gv2Xi0cU77vHeRz73uG8Q5tBhYgm-VT5EU$


Help us build a comprehensive ClamAV guide:
https://urldefense.com/v3/__https://github.com/vrtadmin/clamav-faq__;!!PvTMCG4!fkwxLE5iMS33hbYPL0ZOFZllRbZKjrgC8gv2Xi0cU77vHeRz73uG8Q5tBhYgW0OmPJY$

https://urldefense.com/v3/__http://www.clamav.net/contact.html*ml__;Iw!!PvTMCG4!fkwxLE5iMS33hbYPL0ZOFZllRbZKjrgC8gv2Xi0cU77vHeRz73uG8Q5tBhYgcvQNDC4$