[clamav-users] clamdscan troubleshooting
Daniel L. Srebnick
dan at islenet.com
Sat Nov 21 16:17:15 UTC 2015
I'm having some issues verifying a clamav install under FC 22.
I am doing some testing using clamdscan and have been running into some kind
of permission error as far as I can tell. For now, I have set selinux to
permissive to eliminate that as an issue.
I have an eicar.com file that I have scanned with clamscan and it verifies
that one file has been scanned and that one virus has been found.
Next, I want to submit a scan of eicar.com using clamdscan.
[root at zzz tmp]# ls -l eicar.com
-rw-rw-r--. 1 clamscan clamscan 68 Sep 4 2006 eicar.com
[root at zzz tmp]#
[root at ears tmp]# clamdscan -c /etc/clamd.d/scan.conf /tmp/eicar.com
/tmp/eicar.com: lstat() failed: No such file or directory. ERROR
----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 1
Time: 0.001 sec (0 m 0 s)
[root at ears tmp]# ls -l eicar.com
-rw-rw-r--. 1 clamscan clamscan 68 Sep 4 2006 eicar.com
[root at ears tmp]# clamdscan -c /etc/clamd.d/scan.conf /tmp/eicar.com
/tmp/eicar.com: lstat() failed: No such file or directory. ERROR
----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 1
Time: 0.001 sec (0 m 0 s)
Note that the file is not found. If I scan the directory instead:
[root at ears tmp]# clamdscan -c /etc/clamd.d/scan.conf /tmp
/tmp: OK
----------- SCAN SUMMARY -----------
Infected files: 0
Time: 0.000 sec (0 m 0 s)
You have new mail in /var/spool/mail/dan
[root at ears tmp]#
No infected file is found and no errors.
clamd is running as clamscan.
Ready for any suggestions about what is happening here. I've been working
on this for a few days.
Thank you.
More information about the clamav-users
mailing list