Bug 725406 - clam.log and freshclam.log change owners each time they are rolled
Summary: clam.log and freshclam.log change owners each time they are rolled
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: clamav
Version: el5
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jan-Frode Myklebust
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-25 12:01 UTC by Virgil Balibanu
Modified: 2011-07-25 14:17 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-25 13:01:27 UTC
Type: ---


Attachments (Terms of Use)

Description Virgil Balibanu 2011-07-25 12:01:16 UTC
Description of problem:
From time to time the user and group for the files clam.log and
freshclam.log
change from clamav:clamav to clam:clam thou the user is set to clamav in
the
config. This messes up the service because it no longer has acces rights
on the
log files. I believe this happens when the log files rotate.
I'm using CentOS 5.5 and I installed clamav following the steps here:
http://www.linuxmail.info/how-to-install-clam-antivirus-centos-5/

Version-Release number of selected component (if applicable):
0.97

How reproducible:
one a week ussually, when the log rolls.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Jan-Frode Myklebust 2011-07-25 12:58:28 UTC
This is done by /etc/logrotate.d/clamav. If you need to run clamd as another user than "clam", you should also update this logrotate-config to create the logfile as this user.

But running it as the default user "clam" will be better, as you woun't need to edit this logrotate file, and you woun't need to re-redit it after upgrades.

Comment 2 Jan-Frode Myklebust 2011-07-25 12:59:59 UTC
.. and also /etc/logrotate.d/freshclam needs to be updated..

Comment 3 Jan-Frode Myklebust 2011-07-25 13:01:27 UTC
I'm closing this ticket, since I think this is intended behaviour.

Comment 4 Virgil Balibanu 2011-07-25 14:17:13 UTC
thanks


Note You need to log in before you can comment on or make changes to this bug.