Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: ERROR: Can't open/parse /etc/clamav/freshclam.conf

  1. #11
    Join Date
    Jul 2019
    Beans
    6

    Re: ERROR: Can't open/parse /etc/clamav/freshclam.conf

    Running the command you suggested worked. Now I am a bit confused, why did that work? Should I change the owner and group of freshclam? Or is it the user and group its run as that matters?
    As for why I need it, I don't per se, its now become company policy to have AV on every system.

  2. #12
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: ERROR: Can't open/parse /etc/clamav/freshclam.conf

    -rwx------ 1 clamav adm 939 Jul 19 13:11 /etc/clamav/freshclam.conf*
    This file is owned by clamav in group adm. Running freshclam with that user and group enables it to read the freshclam.conf file. (Actually the group ownership doesn't matter here.)

    You could set up a task in /etc/crontab that would run that command nightly

    Code:
    31 4 * * * clamav /path/to/freshclam >> /var/log/freshclam.log 2>&1
    would run the freshclam program as user clamav every morning at 4:31 am. Replace "/path/to" with the actual path. /usr/bin/freshclam perhaps? Its output will be written to /var/log/freshclam.log. The "2>&1" item directs any errors written to the SYSERR device to the log file along with the normal program output. You might need to create the freshclam.log file manually to start since it needs to be owned by user clamav.

    Code:
    cd /var/log
    sudo touch freshclam.log
    sudo chown clamav:adm freshclam.log
    Last edited by SeijiSensei; July 23rd, 2019 at 04:46 PM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #13
    Join Date
    Jan 2018
    Beans
    35

    Re: ERROR: Can't open/parse /etc/clamav/freshclam.conf

    Have you ever tried it this way to update ?

    sudo systemctl stop clamav-freshclam
    sudo freshclam
    sudo systemctl start clamav-freshclam
    clamscan '/what-ever- the-directory-you need-scanned'

    This worked for me as an update.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •