vi /etc/rc.confsamba_enable=”YES”:wqvi /usr/local/etc/smb.confadd: hosts allow = 192.168.33. 127. vfs object = vscan-clamav vscan-clamav: config-file = /usr/local/etc/samba/vscan-clamav.conf encrypt passwords = yes
smb passwd file = /usr/local/etc/samba/smbpasswd
veto files = /*.eml/*.nws/riched20.dll/*.bat/*.scr/*.pif/
delete veto files = True
hide dot files = yes
#fam change notify = no:wq
smbpasswd -a geniux
###########################################################################
mkdir /usr/local/src/
cd /usr/local/src/
tar -zxvpf /root/samba-3.0.28.tar.gz
cd samba-3.0.28/source/
./configure
make headers
cd /usr/local/src/samba-3.0.28/examples/VFS/
tar -zxvpf /root/samba-vscan-0.3.6c-beta5.tar.gz
cd samba-vscan-0.3.6c-beta5/
./configure
gmake
cp vscan-clamav.so /usr/local/lib/samba/vfs/
cd clamav/
cp vscan-clamav.conf /usr/local/etc/samba/
cd /usr/local/etc/samba
chown clamav:wheel vscan-clamav.conf
vi vscan-clamav.conf
:wq
chmod g+rx,o+rx /usr/local/etc/samba
/usr/local/etc/rc.d/samba restart