Integrating Dr.Web solution with Samba

Add the following section to the Samba configuration file (/etc/samba/smb.conf by default) and edit the settings in accordance with the used directories:

 
[drweb_audit]
comment = Dr.Web protected directory
path = /<path to directory to be protected>/
vfs objects = smb_spider
smb_spider: config = <path to configuration file or Agent socket address>
writeable = yes
browseable = yes
guest ok = yes
public = yes
 

After you finish editing, restart Samba file server.

If you want each protected shared resource to be configured with a separated configuration file, add the following line to each resource section:

smb_spider: config = %etc_dir/smp_spider.conf

Dr.Web Samba VFS SpIDer can also receive settings from Dr.Web Agent. To enable this option, in the smb.conf file substitute the line containing the smb_spider.conf file path with the following line:

smb_spider: config = <Agent socket address>

Example:

UNIX socket (Dr.Web Agent is running on the local machine):

smb_spider: config = local:%var_dir/ipc/.agent

TCP socket (Dr.Web Agent is running on a remote machine):

smb_spider: config = inet:4040@127.0.0.1

Note that if you specified Dr.Web Agent address in smb_spider: config, Dr.Web Samba VFS SpIDer sends statistics to Dr.Web Agent. To ensure correct statistics gathering, add the line with Dr.Web Agent address to the section of each protected shared resources.