Chris wrote:
> On Monday 18 June 2007 5:04 pm, Christopher X. Candreva wrote:
>   
>> On Mon, 18 Jun 2007, Chris wrote:
>>     
>>> [EMAIL PROTECTED] ~]$ clamdscan phish1.txt
>>> /home/chris/phish1.txt: Access denied. ERROR
>>>
>>> I can't figure out why I keep getting this Access denied error. Anyone
>>> with any ideas?
>>>       
>> Because you didn't RTFM. :-)
>>
>> clamdscan passes the file name to clamd, which tries to open it. clamd is
>> normally running as an unprivledged user so unless the file is world
>> readable (or readbale by the clamd process), you get that error
>>
>> Sent the file to STDIN and you solve the problem
>>
>> clamdscan - <phish1.txt
>>
>>     
> Thanks Chris, guess the Fine Manual wasn't clear enough to me.
>
>   
There IS another option though.
The recommended way to run clamd is to run it as non-root user. Meaning
it may have some permission problems if not properly setup. The
alternative solutions are :
- Use STDIN, which might introduce some overhead (read file -> stream ->
saving stream)
- Change clamd's user to match your application (most likely mail
server) user
- Add clamd's user to app's group, and activating
AllowSupplementaryGroups on clamd.conf
- Run clamd as root

The best choice depends on what you're using it for.
Regards,

Fajar
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to