samba3 + clamav (Samba在线杀毒)
2009-05-13 06:58:17来源:未知 阅读 ()
1.安装Samba 3
# cd /usr/ports/net/samba3
# make install clean安装完samba,请设置/usr/local/etc/smb.conf.并在/etc/rc.conf加入一句使Samba随系统一起启动.
samba_enable="YES"2.安装clamav
# cd /usr/ports/security/clamav
# make install clean手动更新病毒库到默认路径
# freshclam在/etc/rc.conf加一句让Clamav随系统一起启动.
clamav_clamd_enable="YES"
clamav_freshclam_enable="YES" # 定时更新病毒库3.安装samba-vscan
# cd /usr/ports/security/samba-vscan
# make install clean在/usr/local/etc/smb.conf的[global]加入
vfs object = vscan-clamav
vscan-clamav: config-file = /usr/local/etc/samba-vscan/vscan-clamav.conf附简单的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 =
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- netbsd启动gnome失败! 2009-05-13
- OpenBSD 4.5下安装Gnome 2.24成功! 2009-05-13
- OpenBSD怎么安装gnome啊?(已解决!) 2009-05-13
- [FreeBSD] 挂载Linux分区一成一败 2009-05-13
- freebsd postfix设置 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash