Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79115 - Gentoo Samba3/CUPS/Clam AV HOWTO: not successfull
Summary: Gentoo Samba3/CUPS/Clam AV HOWTO: not successfull
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Other (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-22 10:48 UTC by Simon Schwab
Modified: 2005-02-07 11:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch file with my updates (quick-samba-howto.xml.patch,3.03 KB, patch)
2005-01-22 13:33 UTC, Simon Schwab
Details | Diff
New patch for quick-samba-howto.xml (TEMPFILE,4.85 KB, patch)
2005-02-07 10:59 UTC, Sven Vermeulen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Schwab 2005-01-22 10:48:31 UTC
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
Comment 1 Simon Schwab 2005-01-22 13:33:08 UTC
Created attachment 49229 [details, diff]
patch file with my updates
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2005-02-07 10:59:53 UTC
Created attachment 50639 [details, diff]
New patch for quick-samba-howto.xml
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2005-02-07 11:02:39 UTC
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.