"Daniel L. Srebnick" <d...@islenet.com> writes: >> That means user clamscan cannot read the file eicar. This is idenepdant of >> the user that launchs clamdscan. Try to put eicar.txt in /tmp and make it >> mode 777. > > I did so. Clamdscan still does not see the file and returns an lstat error. > I even made clamscan/clamscan the owner. > > -rwxrwxrwx. 1 clamscan clamscan 69 Nov 19 05:09 eicar.txt > > > [root@zzzz tmp]# clamdscan -c /etc/clamd.d/scan.conf /tmp/eicar.txt > /tmp/eicar.txt: lstat() failed: No such file or directory. ERROR
Hummm... I just tried and when he file is not accessible (mode 600) I get: mail<on>: ll /tmp/eicar 736 4 -rw------- 1 on wheel 69 Nov 19 17:32 /tmp/eicar mail<on>: clamdscan /tmp/eicar /tmp/eicar: Access denied. ERROR ----------- SCAN SUMMARY ----------- Infected files: 0 Total errors: 1 Time: 0.000 sec (0 m 0 s) mail<on>: OK. have you checked the socket? In your configuration file you should have LocalSocket /some/path/... Does it belong to UID/GID clamscan? Is it mode 666? Olivier > ----------- SCAN SUMMARY ----------- > Infected files: 0 > Total errors: 1 > Time: 0.001 sec (0 m 0 s) > [root@ears tmp]# > > --