Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fresh Clamav emerge, can't write to log files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
shadowknight
Tux's lil' helper
Tux's lil' helper


Joined: 03 Aug 2002
Posts: 142

PostPosted: Thu Jan 03, 2008 2:13 am    Post subject: Fresh Clamav emerge, can't write to log files Reply with quote

I have been using the linux version of avg and when i personally initiate a scan it finishes clean, but when it runs from cron it comes back as 1 virus found. The log file is too long to look through and trying to view the logs from within avggui locks avg altogether so I thought I'd give clamav a go. I emerged it fine, but when i do:

Code:
/etc/init.d/clamd start
or even restart

I get this:

Code:
/etc/init.d/clamd restart
 * Stopping clamd ...                                                                         [ ok ]
 * Stopping freshclam ...                                                                     [ ok ]
 * Starting clamd ...
ERROR: Can't open /var/log/clamav/clamd.log in append mode (check permissions!).
ERROR: Problem with internal logger. Please check the permissions on the /var/log/clamav/clamd.log file.
 * Failed to start clamd                                                                      [ !! ]
 * Starting freshclam ...
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
 * Failed to start freshclam   


I checked the log files and they appear to have the correct permissions. I even made new files and changed the .conf files to point to them and clamav changes the permission to clamav as the owner with rw permissions and root as the group with r permissions and everyone else forbidden. Can someone tell me what I'm missing here ?? TIA
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Thu Jan 03, 2008 10:23 am    Post subject: Reply with quote

You could check your /var/log/clamav directory. One of mine

Code:

drwxr-xr-x  2 clamav  clamav      448 2007-12-28 03:10 clamav


I'm on 0.92.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum