limaunion at gmail
Dec 23, 2009, 9:38 AM
Post #10 of 12
On Tue, Dec 22, 2009 at 9:06 AM, Lima Union <limaunion [at] gmail> wrote:
Re: lstat() failed: Permission denied. ERROR
[In reply to]
> On Mon, Dec 21, 2009 at 5:51 PM, Robert Wyatt <chupacerveza [at] gmail> wrote:
>> Lima Union wrote:
>> 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.
> Ok, thanks. From the man page:
> (4) To scan from standard input:
> clamdscan - <file_to_scan cat file_to_scan | clamdscan -
> Anyway it's strange because from a Debian distro I can issue
> clamadscan without the hyphen.
> Best regards.
Hi! just for the record, I think that this problem is related to
SELinux, I'm running RH 5.4 and have disabled it and now clamdscan
works without requiring an hyphen.
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net