Koozali.org: home of the SME Server

Clamav Securiteinfo unofficial sigs: cron job throws errors

Offline Michail Pappas

  • *
  • 341
  • +1/-0
SME 9.2, followed instructions under the wiki entry at https://wiki.contribs.org/Clamav_unofficial_sigs (I did create an account).

I'm getting the following error from the cron job:

Subject: Cron <root@mail> [ -x /usr/sbin/clamav-unofficial-sigs.sh ] && /bin/bash /usr/sbin/clamav-unofficial-sigs.sh

======================================================================
ERROR: clam database directory (clam_dbs) not writable /var/lib/clamav
======================================================================

I could not find this directory /var/lib/clamav, only /var/lib/clamav-unofficial-sigs/ exists, with clam-update:clam-update permissions.

Offline Michail Pappas

  • *
  • 341
  • +1/-0
Re: Clamav Securiteinfo unofficial sigs: cron job throws errors
« Reply #1 on: June 19, 2020, 01:25:31 PM »
More info: running clamav-unofficial-sigs.sh for the first time manually, throws error:

Code: [Select]
# clamav-unofficial-sigs.sh
################################################################################
 eXtremeSHOK.com ClamAV Unofficial Signature Updater
 Version: v7.0.1 (2020-01-25)
 Required Configuration Version: v91
 Copyright (c) Adrian Jon Kriel :: admin@extremeshok.com
################################################################################
Loading config: /etc/clamav-unofficial-sigs/master.conf
Loading config: /etc/clamav-unofficial-sigs/os.conf
Loading config: /etc/clamav-unofficial-sigs/user.conf
======================================================================
ERROR: clam database directory (clam_dbs) not writable /var/lib/clamav
======================================================================

Offline Michail Pappas

  • *
  • 341
  • +1/-0
Re: Clamav Securiteinfo unofficial sigs: cron job throws errors
« Reply #2 on: June 19, 2020, 01:46:17 PM »
It seems one has to edit file /etc/clamav-unofficial-sigs/os.conf and change these lines:

Code: [Select]
# RHEL/CentOS 6

clam_user="clam"
clam_group="clam"

clam_dbs="/var/lib/clamav"

to:

Code: [Select]
# RHEL/CentOS 6

clam_user="clamav"
clam_group="clamav"

clam_dbs="/var/clamav"

If Daniel reads this, perhaps he can confirm the correctness of the lines mentioned above.


Offline Michail Pappas

  • *
  • 341
  • +1/-0
Re: Clamav Securiteinfo unofficial sigs: cron job throws errors
« Reply #4 on: June 20, 2020, 06:47:34 AM »
https://bugs.contribs.org/show_bug.cgi?id=9863#c8
Thanks mate, it seems the wiki entry needs some editing then. I'll try to do it over the next days.