Bug 3537 - freshclam can't open log file and can't read mirrors.dat
: freshclam can't open log file and can't read mirrors.dat
Status: RESOLVED NOTABUG
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Main Packages
: Fresh
: x86_64 Linux
: Normal minor
: ---
Assigned To: ROSA Linux Bugs
: ROSA Linux Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-09 11:35 MSK by Postnikov Dmitry
Modified: 2014-11-21 10:43 MSK (History)
1 user (show)

See Also:
RPM Package: clamav-0.98-1-rosa2012.1.x86_64
ISO-related:
Bad POT generating:
Upstream:


Attachments
freshclam.conf (8.37 KB, text/plain)
2014-01-09 11:35 MSK, Postnikov Dmitry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Postnikov Dmitry 2014-01-09 11:35:28 MSK
Created attachment 2499 [details]
freshclam.conf

Description of problem:
freshclam can't open log file and can't read mirrors.dat

Start frashclam i see:
==============
[pastordi@mindlife ~]$ freshclam -u pastordi --list-mirrors
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).
[pastordi@mindlife ~]$ 
[pastordi@mindlife ~]$ su
Пароль: 
[root@mindlife pastordi]# touch /var/log/clamav/freshclam.log
[root@mindlife pastordi]# exit
exit
[pastordi@mindlife ~]$ freshclam -u pastordi --list-mirrors
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).
[pastordi@mindlife ~]$ 
=============

After disable option "UpdateLogFile" frechclam can't read mirrors.dat

=============
[pastordi@mindlife ~]$ freshclam -u pastordi --list-mirrors
Can't read mirrors.dat
[pastordi@mindlife ~]$
=============
Comment 1 Denis Silakov 2014-01-24 23:50:59 MSK
Yes, freshclam by default is configured to run under special user ("clamav"). But you can still run freshclam manually using root account.