> -----Original Message----- > From: clamav-users-boun...@lists.clamav.net [mailto:clamav-users- > boun...@lists.clamav.net] On Behalf Of Lima Union > Sent: Monday, December 21, 2009 12:41 PM > To: ClamAV users ML > Subject: Re: [Clamav-users] lstat() failed: Permission denied. ERROR > > > You mean substituting clamdscan for clamscan ? > > This is the result: > > clamscan eicar.txt > eicar.txt: Eicar-Test-Signature FOUND > > ----------- SCAN SUMMARY ----------- > Known viruses: 678203 > Engine version: 0.95.3 > Scanned directories: 0 > Scanned files: 1 > Infected files: 1 > Data scanned: 0.00 MB > Data read: 0.00 MB (ratio 0.00:1) > Time: 1.864 sec (0 m 1 s) > > But clamdscan still doesn't work... :(
It's likely that the user clamd runs as doesn't have correct permissions to access the file you're scanning. An earlier suggestion was close but, I think, missing something. Try adding a hyphen at the end: cat eicar.txt | clamdscan - _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml