<div dir="ltr">Hello,<br><br>Have you tried adding the user under which Kaspersky Antivirus runs in the amavis group?<br><div><br><br>On Tue, Jan 21, 2014 at 6:30 PM, Jakob Curdes via amavis-users <<a href="mailto:amavis-users@amavis.org">amavis-users@amavis.org</a>> wrote:<br>
><br>> I am now trying to start with simpler things:<br>> with the command-line version of KLMS 8.0, kavscanner.<br>> This is similar or identical to the scanner delivered with kav4fs, so I can use a predefined configuration, only the path must be modified:<br>
><br>>    ### <a href="http://www.kaspersky.com/">http://www.kaspersky.com/</a><br>>    ['Kaspersky Antivirus v8',<br>>       ['/opt/kaspersky/klms/bin/kavscanner', 'kavscanner'],<br>>      '-i0 -xn -xp -mn -R -ePASBME {}/*', [0,10,15], [5,20,21,25],<br>
>      qr/(?:INFECTED|WARNING|SUSPICION|SUSPICIOUS) (.*)/m,<br>>     sub {chdir('/opt/kaspersky/klms/bin') or die "Can't chdir to kav: $!"},<br>>     sub {chdir($TEMPBASE) or die "Can't chdir back to $TEMPBASE $!"},<br>
>    ],<br>><br>> After modifying the permissions of the "facade"<br>><br>> chmod g+w /var/run/klms/facade<br>><br>> this runs nicely if called from the command line as user amavis.<br>><br>
> But called from amavisd, as above, I get<br>> Jan 21 13:51:21  amavis[18062]: (18062-02) (!)run_av (Kaspersky Antivirus v8) FAILED - unexpected exit 30, output="Kaspersky Anti-Virus On-Demand Scanner.\nCopyright (C) Kaspersky Lab, 1997-2012.\nCannot create /var/log/kaspersky/klms/kavscanner.log"<br>
><br>> even though it could access the same file without problems when it ran from a shell of this user. The logfile belongs to amavis:amavis.<br>> Does amavisd detach the virus scanner processes to another user, e.g. "nobody"? I have no other explanation why the binary cannot access its logfile.<br>
><br>><br>> JC<br><br></div></div>