<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 27.01.2014 14:56, schrieb tejas
sarade:<br>
</div>
<blockquote
cite="mid:CAC7KuJ3Ar8zGwdtw0bqyokanvKyMgTVeYqXUoGkKWaqwsLYVpA@mail.gmail.com"
type="cite">
<div dir="ltr">Hello,<br>
<br>
Have you tried adding the user under which Kaspersky Antivirus
runs in the amavis group?<br>
<div><br>
</div>
</div>
</blockquote>
Yes, the amavis and klusers groups are all as indicated in the
manual. <br>
Anyway, this would not explain why it works when doing it from the
command line but not from the amavisd script.<br>
<br>
JC <br>
<br>
<br>
<br>
<blockquote
cite="mid:CAC7KuJ3Ar8zGwdtw0bqyokanvKyMgTVeYqXUoGkKWaqwsLYVpA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
On Tue, Jan 21, 2014 at 6:30 PM, Jakob Curdes via amavis-users
<<a moz-do-not-send="true"
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 moz-do-not-send="true"
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>
</blockquote>
<br>
</body>
</html>