With latest stable samba this HOWTO need some updates. Reproducible: Always Steps to Reproduce: 1. Follow the steps of the HOWTO Actual Results: ClamAV integration will not work. Error Messages in syslog: smbd_vscan-oav[17364]: ERROR: unknown response from ScannerDaemon while scanning or smbd_vscan-clamav[9273]: ERROR: can not connect to clamd (socket: '/var/run/clamd')! Expected Results: The HOWTO should lead to a successful Samba/ClamAV intergration. - The project name is ClamAV, not Clam AV or CLAM-AV - "libclamav" should be added to /etc/make.conf before "emerge samba" - there should be a remark that the price of on access scanning is a remarkable performance loss - some important information is missing: /etc/init.d/clamd can start two services: freshclam and clamd. the freshclam daemon regulary updates the virus definition database and clamd is the acutal virusscan deamon. by default the /etc/ini.d/clamd script doesn't start clamd but only freshclam. to activate clamd do the following: # vim /etc/conf.d/clamd START_CLAMD=yes - for on access scanning intergration in samba the appropriate lines in /etc/samba/smb.conf are: vfs object = vscan-clamav vscan-clamav: config-file = /etc/samba/vscan-oav.conf - /etc/samba/vscan-oav.conf should have clamd socket name = /tmp/clamd oav port = 8127 the reason is that clamd runs as user clamav and has no write permissions for /var/run/clamd. - another usefull remark would be to set the path of the ClamAV logfile: vim /etc/clamd.conf LogFile /var/log/clamd.log vim /etc/freshclam.conf UpdateLogFile /var/log/freshclam.log that's it. simon
Created attachment 49229 [details, diff] patch file with my updates
Created attachment 50639 [details, diff] New patch for quick-samba-howto.xml
Hi Simon Thanks for the patch. Your patch was against the resulting HTML code you see when you visit the page. The underlying source code (which we edit) is in GuideXML format. You can view that source by appending the url with "?passthru=1", like this: http://www.gentoo.org/doc/en/quick-samba-howto.xml?passthru=1 I've converted your patch to one for GuideXML (see the attachment) and committed it to CVS. As you can see, the patch is in unified format as well (diff -u) which makes it easier for patch to integrate it if the document was altered elsewhere.