“Error connecting to clamav daemon” e Dansguardian AntiVirus

Una problematica spesso incontrata nell’installazione di DGAV (DansGuardian AntiVirus) è il seguente errore:

Error connecting to clamav daemon

Il problema risiede nel file di configurazione /etc/dansguardian/dansguardian.conf.

# Daemon runas user and group
# This is the user that DansGuardian runs as. Normally the user/group nobody.
# Uncomment to use. Defaults to the user set at compile time.
# daemonuser = ‘nobody’
# daemongroup = ‘nobody’

deve diventare

# Daemon runas user and group
# This is the user that DansGuardian runs as. Normally the user/group nobody.
# Uncomment to use. Defaults to the user set at compile time.
daemonuser = ‘root’
cladaemongroup = ‘root’

ovvero lo stesso utente presente nel file /etc/clamd.conf nella direttiva “User”

# Run as another user (clamd must be started by root for this option to work)
# Default: don’t drop privileges
User root

Poi occorre vedere nel file /etc/clamd.conf il parametro “LocalSocket”

# Path to a local socket file the daemon will listen on.
# Default: disabled (must be specified by a user)
LocalSocket /var/run/clamav/clamd.sock

… e variare il parametro “clamdsocket” in /etc/dansguardian/dansguardian.conf da “/tmp/clamd” a “/var/run/clamav/clamd.sock”

# CLAMDSCAN SETTINGS
# ——————–
# OPTION: clamdsocket
# Set the name of a local clamd socket (file)
# or the hostname:port of a remote clamd server
# default: ‘/tmp/clamd’
#clamdsocket = ‘/tmp/clamd’
clamdsocket = ‘/var/run/clamav/clamd.sock’

  1. No trackbacks yet.

Lascia un Commento

Fill in your details below or click an icon to log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Log Out / Modifica )

Foto Twitter

You are commenting using your Twitter account. Log Out / Modifica )

Foto di Facebook

You are commenting using your Facebook account. Log Out / Modifica )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 32 other followers