Lima Union wrote:
On Mon, Dec 21, 2009 at 3:08 PM, Jason Bertoch<ja...@electronet.net>  wrote:
-----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 -


Your suggestion works! so this is a file permission problem ? where
should I look ?
Thanks!

Hi Lima,

I should let the experts answer, but I'll take a stab at it just to find out for myself. One of the differences between clamscan and clamdscan is that clamscan runs as the user requesting it whereas clamdscan runs as a special user (usually clamd, I believe), which would be in a special administrative category allowing it to read across multiple user's files.

So you probably do not have a file permission problem per se and that is why the hyphen option is included so that when you run clamdscan as a normal user you can do what you were trying to do.

I would recommend consulting "man clamdscan" for the options and descriptions. Let's see what others have to say.

--Robert
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to