The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with internal logger CLAMAV

Discussion in 'Security' started by itmonitor, Sep 8, 2015.

  1. itmonitor

    itmonitor Active Member

    Joined:
    Apr 10, 2014
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hi!

    I have a cron job that runs clamav once a day. Everyday I receive the email report pasted below. I tried with my hosting provider, they tried their best but did not resolved the issue. Please, any advice is welcome! :)

    rgs

    IM

    /etc/cron.daily/freshclam:

    ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
    ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
    /etc/cron.daily/manual_clamscan:

    LibClamAV Warning: cli_tnef: file truncated, returning CLEAN
    LibClamAV Warning: cli_tnef: file truncated, returning CLEAN
    LibClamAV Warning: cli_tnef: file truncated, returning CLEAN
     
  2. 24x7serversecurity

    Joined:
    Aug 31, 2015
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi :),

    As per the logs, ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
    check the permissions of log file: /var/log/clamav/freshclam.log
    it should be like below:

    -rw-r----- 1 clamav clamav 4259 Sep 9 03:16 freshclam.log
     
  3. itmonitor

    itmonitor Active Member

    Joined:
    Apr 10, 2014
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Many thanks! Please, what is the permissions code for the freshclam.log file?
     
  4. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    942
    Likes Received:
    57
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    According to the above post the permissions are 640 and ownership is clamav:clamav
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Note you can use the "stat" command if you want to see a numerical output for the file permissions. EX:

    Code:
    stat /var/log/clamav/freshclam.log
    Thank you.
     
  6. itmonitor

    itmonitor Active Member

    Joined:
    Apr 10, 2014
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Many thanks Michael! :)

    There is another issue, related to the CLAMAV scan results, but I am posting another thread. Please, you can mark this thread as solved.
     
Loading...

Share This Page