Samba3 + ClamAV (Samba online Antivirus)

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.