Après avoir suivi le tuto de le-vert.net/howto/samba-vscan/ sur une etch avec samba-3.0.24 et samba-vscan-0.3.6b, le module vfs de vscan ne semble pas pris en charge par samba :
/etc/samba/smb.conf
[smb_vscan]
comment = virus-protected/
path = /home/
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
writeable = yes
browseable = yes
guest ok = yes
debuglevel = 0 vfs:10
[code]/etc/samba/vscan-clamav.conf
; socket name of clamd (default: /var/run/clamd). Setting will be ignored if
; libclamav is used
clamd socket name = /var/run/clamav/clamd.ctl
; what to do with an infected file
; quarantine: try to move to quantine directory
; delete: delete infected file
; nothing: do nothing (default)
infected file action = quarantine
; where to put infected files - you really want to change this!
quarantine directory = /home/smb/virus/
; prefix for files in quarantine
quarantine prefix = vir-
[/code]
tail -f /var/log/samba/log.fabport
[2008/02/19 22:37:12, 4] smbd/vfs.c:vfs_ChDir(741)
vfs_ChDir to /
[2008/02/19 22:41:28, 0] auth/auth_util.c:create_builtin_administrators(785)
create_builtin_administrators: Failed to create Administrators
[2008/02/19 22:41:28, 0] auth/auth_util.c:create_builtin_users(751)
create_builtin_users: Failed to create Users
[2008/02/19 22:41:28, 3] smbd/vfs.c:vfs_init_default(219)
Initialising default vfs hooks
[2008/02/19 22:41:28, 4] smbd/vfs.c:vfs_ChDir(741)
vfs_ChDir to /home/fab
[2008/02/19 22:44:31, 0] printing/pcap.c:pcap_cache_reload(159)
Unable to open printcap file /etc/printcap for read!
[2008/02/19 22:44:31, 0] printing/pcap.c:pcap_cache_reload(159)
Unable to open printcap file /etc/printcap for read!
Selon le tuto, j’aurai du avoir :
tail -f /var/log/samba/log.nom_machine_cliente
[2005/10/08 23:32:20, 5] smbd/vfs.c:smb_register_vfs(196)
Successfully added vfs backend 'vscan-clamav'
Successfully loaded vfs module [vscan-clamav] with the new modules system
[2005/10/08 23:32:20, 5] smbd/vfs.c:vfs_init_custom(278)
Checking operation #0 (type 0, layer 1)
Accepting operation type 0 from module vscan-clamav
[2005/10/08 23:32:20, 5] smbd/vfs.c:vfs_init_custom(278)
Checking operation #1 (type 1, layer 1)
Accepting operation type 1 from module vscan-clamav
[2005/10/08 23:32:20, 5] smbd/vfs.c:vfs_init_custom(278)
Checking operation #2 (type 14, layer 1)
Accepting operation type 14 from module vscan-clamav