Public bug reported:

After installing amavisd-new and clamav-daemon clamav fails with the error:
ClamAV-clamd av-scanner FAILED: CODE(0x36ab6c8) unexpected , 
output="/var/lib/amavis/tmp/amavis-20160923T095247-01779-3L04SPou/parts: 
lstat() failed: Permission denied. ERROR\n" at (eval 100) line 905.

clamav user is in the amavis group and the permission on that dir are:

drwxr-x--- 3 amavis amavis 4096 Sep 23 09:52 amavis-
20160923T095247-01779-3L04SPou

For a workaround I used the suggestion here:
http://askubuntu.com/questions/604446/how-to-fix-amvavis-reporting-permission-denied-for-clamav

Edited /etc/clamav/clamd.conf and changed
AllowSupplementaryGroups false
to true

I believe this is one of the typical use case scenario for clamav-daemon
so this option should be included by default.  To me this also seems to
be the expected behavior by default (if the user the daemon is run as is
in groups allowing access I'd assume it has that access).  I don't
understand why this is an option and not default behavior.

I'm unsure of whether Debian plans to deprecate/remove the
AllowSupplementaryGroups configuration option moving forward.  If done,
it will break clamav-daemon - avamisd-new integration as is done
currently.  I point this out to prevent future issues.

Thanks for the great work, I hope this helps.

** Affects: clamav (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1628275

Title:
  ClamAV-clamd av-scanner FAILED: CODE(0x36ab6c8) unexpected ,
  output="/var/lib/amavis/tmp/amavis-
  20160923T095247-01779-3L04SPou/parts: lstat() failed: Permission
  denied.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/1628275/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to