Re: The good old "permission denied", the ignored group memberships, and a proposed solution

Matus UHLAR - fantomas <[email protected]>
Newsgroups gmane.mail.virus.amavis.user
Message-ID <[email protected]>
>On Sat, 15 May 2021 17:29:40 +0100
>Dominic Raferd <[email protected]> wrote:
>
>> I believe that if you use the new preferred way of calling clamav
>> i.e. with --fdpass, the whole permissions issue disappears.
>>
>> Example:
>>
>> @av_scanners = (
>>    ['ClamAV-clamdscan', 'clamdscan', "--fdpass --stdout --no-summary
>> {}", [0], qr/:.*\sFOUND$/m, qr/^.*?: (?!Infected Archive)(.*)
>> FOUND$/m ], );

On 16.05.21 17:37, Luc Pardon wrote:
>Thanks, but no, it does not work, I still get "Permission denied". The
>wording is a little different, but the meaning is the same: no go.

I have in my notes:

adduser clamav amavis

this way, clamd can scan files extracted by amavis in its temporary
directory (e.g. --fdpass)

what are your permissions? 
I have "666" for clamav socket (debian):

srw-rw-rw- 1 clamav clamav 0 Apr 28 18:55 /run/clamav/clamd.ctl


-- 
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Micro random number generator: 0, 0, 0, 4.33e+67, 0, 0, 0...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.