OMV Antivirus

  • Morning all,
    I am new to OMV as well as Linux. I purchased an rpi3b and installed OMV per the tutorials.
    I am having a few issues. The first is the Antivirus. I scheduled jobs to what i think would be every day at midnight but it never ran. I deleted all the jobs and created only one.
    I tried to manually run the job but I have an error. I tried to google search the error but didn't find anything. Maybe one of you guys can help me out.
    The other issues I have I will address in another thread after i do some research.


    Here is the error. Line 7 says it couldn't connect and states there is no such file. I am not sure what this means and don't know how to address the issue.
    Hopefully, one of you can help me out.
    Thanks,
    Pujo

  • I ran into the same error after upgrading to OMV4.


    To fix it, change the ownership for files in /var/log/clamav/ to clamav, and you will get fresh clams.


    Bash
    $ cd /var/log/
    $ chown -R clamav clamav
  • Hello All!


    I'm a newbie here and my english is bad... :|


    My OMV 4.1 has runned for much months without problems.
    But on the last update the successful flight was broken!


    "openmediafault-clamav 4.1.13" runs into red status.


    The error message:
    "can't open /var/log/clamav/freshclam.log in append mode (check permissions!)"


    File not found.


    But nothing of the usually hints helps! Nothing!!!


    i tried a lot of possibilities and found a way:


    first step: check for file and change the permissions as follows:


    ls -la /var/log/clamav/
    total 20
    drwxrwx--- 2 clamav adm 4096 Feb 29 11:08 .
    drwxr-xr-x 14 root root 4096 Feb 29 10:52 ..
    -rwxrwx--- 1 clamav adm 5950 Feb 29 12:13 clamav.log
    -rwxrwx--- 1 clamav adm 1197 Feb 29 12:00 freshclam.log


    My own comment:
    What a mad permission!!!
    The log-files must have executable flags!!!
    I don't understand...
    ...shaking the head.


    Why is it not possible to find the correct permissions anywhere in the web?
    This error is not new!!!
    Where are the experts???


    ...ok. Starting a new test and the result is: a new error!


    "Socket file /var/run/clamav/clamd.ctl could not be bound: Permission denied"


    once more: File not found...


    Created a new file "/var/run/clamav/clamd.ctl" and executed "freshclam" without errors


    Then it should look like this:
    ls -la /var/run/clamav/
    total 0
    drwxrwx--- 2 clamav adm 60 Feb 29 12:13 .
    drwxr-xr-x 27 root root 1120 Feb 29 10:53 ..
    srw-rw-rw- 1 clamav clamav 0 Feb 29 12:13 clamd.ctl


    Executing errorless "freshclam" before first service startup is essential!!!
    Where can i find this hint?



    Starting the service but the status will be red again...


    In the forum here i found a helpful hint:
    look into the file "/etc/systemd/system/clamav-daemon.service.d/extend.conf"


    cat /etc/systemd/system/clamav-daemon.service.d/extend.conf
    [Service]
    ExecStartPre=-/bin/mkdir /run/clamav
    ExecStartPre=/bin/chown root /run/clamav


    change the 'root' to 'clamav' like this:


    cat /etc/systemd/system/clamav-daemon.service.d/extend.conf
    [Service]
    ExecStartPre=-/bin/mkdir /run/clamav
    ExecStartPre=/bin/chown clamav /run/clamav


    Then reload the config and restart the service:


    systemctl daemon-reload
    systemctl restart clamav-daemon


    Wow!!!
    Now the service is green! :)


    Hope this helps!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!