Hi List,

I am trying to set up clamd and samba-vscan for on access virus scanning
when users connect tomy SAMBA shares.

Running;
OpenSuSE 10.2
samba-3.0.23
samba-vscan-0.3.6
clamav-0.90.2-0.1
clamav-db-0.90.2-0.1

I added this to the [globals] section of /etc/samba/smb.conf
======================================================

vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf

======================================================


This is /etc/samba/vscan-clamav.conf
======================================================

[samba-vscan]
max file size = 0
verbose file logging = yes
scan on open = yes
scan on close = yes
deny access on error = yes
deny access on minor error = yes
send warning message = yes
infected file action = quarantine
quarantine directory  = /var/lib/clamav/quarantine
quarantine prefix = vir-
max lru files entries = 100
lru file entry lifetime = 5
exclude file types =
clamd socket name = /var/run/clamd/clamd
libclamav max files in archive = 1000
libclamav max archived file size = 10485760
libclamav max recursion level = 5

=========================================================================


And this is /etc/clamd.conf:
=========================================================================
LogFile /var/log/clamd
LogFileUnlock
LogSyslog
LogFacility LOG_MAIL
LogVerbose
PidFile /var/lib/clamav/clamd.pid
DatabaseDirectory /var/lib/clamav
LocalSocket /var/run/clamd/clamd
FixStaleSocket
User vscan
Foreground
=========================================================================



I start the service /etc/init.d/clamd  without error
I restart SAMBA without error


but users can't connect to shares and this is the output of my log file:

Jun 24 15:28:11 jfilesdubai01 smbd_vscan-clamav[26450]: INFO: connect
to service Public by user manar
Jun 24 15:28:11 jfilesdubai01 smbd_vscan-clamav[26450]: INFO: File
autorun.inf not found! Not scanned!
Jun 24 15:28:11 jfilesdubai01 smbd_vscan-clamav[26450]: ERROR: can not
connect to clamd (socket: '/var/run/clamd/clamd')!
Jun 24 15:28:11 jfilesdubai01 smbd_vscan-clamav[26450]: INFO: File
autorun.inf not found! Not scanned


Can anyone see anything that is glaringly obvious?

Thanks

Lawrence
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to