Samba3 +
ClamAV(Samba online Antivirus)
URL: http://bbs.chinaunix.net/viewthread.php? Tid = 591517 & Highlight = ClamAV
1. Install Samba 3 # cd/usr/ports/NET/samba3
# Make install clean
After installing samba, set/usr/local/etc/smb. conf. and add a sentence in/etc/rc. conf to enable Samba along with the system. samba_enable = "yes"
2. InstallationClamAV# Cd/usr/ports/security/ClamAV
# Make install clean
Manually update the virus database to the default path # freshclam
Add a sentence in/etc/rc. confClamAVStart with the system.
Clamav_clamd_enable = "yes" clamav_freshclam_enable = "yes" # regularly update the virus Database
3. Install samba-vscan
# Cd/usr/ports/security/samba-vscan # make install clean
In/usr/local/etc/smb. conf [Global] added VFS object = vscan-ClamAV: config-file =/usr/local/etc/samba-vscan/vscan-clamav.conf
Simple smb. conf
# Samba config file created using SWAT # From 127.0.0.1 (127.0.0.1)
# Date: 2005/08/06 10:55:55
# Global Parameters
[Global]
DOS charset = gb2312
UNIX charset = gb2312
Display charset = gb2312
Workgroup = samba
Server String = Samba PDC running % v
Log Level = 2
Log File =/var/log/samba/log. % m
Max log size = 50
Socket Options = tcp_nodelay iptos_lowdelay so_sndbuf = 8192 so_rcvbuf = 8192
Local Master = No
DNS proxy = No
Ldap ssl = No
# Hosts allow = 10.0 .., 127.
VFS object = vscan-ClamAV
Vscan-ClamAV: config-file =/usr/local/etc/samba-vscan/vscan-clamav.conf
[Homes]
Comment = Home Directories
Valid users = % s
Write list = % s
Read Only = No
Create mask = 0666
Directory mask = 0777
Browseable = No
[Profiles]
Path =/home/samba/profiles
Read Only = No
Create mask = 0600
Directory mask = 0700
Browseable = No
[Netlogon]
Comment = network logon service
Path =/home/netlogon
Write list =
Browseable = No
The full text is complete. You are welcome to discuss it.