I bet you have a third-party repo in there and there's a 'battle of the
banjos' going on: one repo has clam using clamav and the other using clam

Do what we did. Edit /etc/passwd and make both accounts have the same UID

Problem solved forever ;-)

Jason

On 27/06/15 07:24, Alan Stern wrote:
> On Fri, 26 Jun 2015, Bob Cohen wrote:
>
>>> On Jun 26, 2015, at 2:19 PM, Alan Stern <st...@rowland.harvard.edu> wrote:
>>>
>>> So what are the permissions for /var/run/clamav?  (Does that directory
>>> even exist?)  And what user/group IDs does your clamd daemon run under?
>> Thanks for responding:
>>
>> Yes the directory exists
>>
>> Permissions:
>> [root etc]# ls -la /var/run/clamav
>> total 16
>> drwxr-xr-x  2 clam clam 4096 Apr 29 14:39 .
>> drwxr-xr-x 31 root root 4096 Jun 26 14:40 ..
>>
>> Okay. Now I see what happened. The owner and group should be set to clamav. 
>> And now it works. Thank you. I knew it was something simple.
>>
>> This makes sense. After a yum update clam sets the log file owner to 
>> clam:clam instead of clamav:clamav and it must also change the user name 
>> which causes the permissions error. How can I get amavisd, spamassassin, and 
>> clam to play nicely with Yum Update?
> That's a question for the CentOS-5 maintainers.  I suppose you could
> run clamd under the clam userid instead of under clamav.  But there
> might be good reasons not to do that, or it might cause other problems.
>
> Alan Stern
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
>
> http://www.clamav.net/contact.html#ml


-- 
Cheers

Jason Haar
Corporate Information Security Manager, Trimble Navigation Ltd.
Phone: +1 408 481 8171
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1

_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to