I’ve recently noticed a frustrating niggle… When processing email, an Ubuntu Server (with all the updates applied) reports “Permission denied” when trying to virus scan attachments.
When I look at the directories in question, I see this:
I made sure the clamd user is a member of the amavisd group – but this didn’t fix anything. Can anyone tell me, specifically, which component wants what permissions – and… ideally… what to do to fix this? Clarification: I am not looking an explanations of the fundamentals of permissions. I am looking for a solution appropriate to this specific problem – which, at first glance, at least, looks as if a component of the amavis suite (perhaps clamd) is using the wrong umask value. Of course, this fault may have arisen as a result of a number of bugs or configuration glitches. I am looking, specifically, for the most appropriate resolution for this case… where a ‘vanilla’ amavis/clamav install fails to access the contents of temporary folders it creates as/when required to scan inbound email. I am aware of this similar (non-Ubuntu) question. The Redhat/Centos answer doesn’t solve the problem I experience with Ubuntu. This problem is encountered on “Ubuntu 14.04.2 LTS” – there are no pending updates. |
||||
A working solution is to change AllowSupplementaryGroups false -> true in /etc/clamav/clamd.conf restart clamav-daemon |
|||||||||||||||||
|
While the Adding |
||||
As
(and restart everything just to be sure)
With this, no need to change folder permission on |
amavis
has no write permissions for/var/lib/amavis/tmp/amavis-20150402T140519-06376-PZcyHfOt/
and/var/lib/amavis/tmp/amavis-20150402T140519-06376-PZcyHfOt/parts
– A.B. Apr 2 ’15 at 14:31chmod -R g+w /var/lib/amavis/tmp
– A.B. Apr 2 ’15 at 14:35