DON'T PANIC! Read http://www.clamav.net/faq.html Database updated (43162 signatures) from db.cn.clamav.net (IP: 221.6.197.162) ERROR: Clamd was NOT notified: Can't connect to clamd on 127.0.0.1:3310 connect(): Connection refused Freeing option list...done
修改/etc/samba/目录中的smb.conf文件中[global]配置部分加入以下内容,完整内容如下:
详细操作: ############################## Global parameters############################
[global] workgroup = easy-pdc netbios name = PDC server string = Samba Server %v log file = /var/log/samba/log.%m security = user encrypt passwords = Yes obey pam restrictions = No ldap passwd sync = Yes log level = 3 syslog = 0 max log size = 100000 time server = Yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 mangling method = hash2 Dos charset = UTF-8 Unix charset = UTF-8 logon script = %U.bat logon drive = H: domain logons = Yes os level = 65 preferred master = Yes domain master = Yes passdb backend = ldapsam:ldap://127.0.0.1/ ldap admin dn = cn=Manager,dc=easy,dc=com ldap suffix = dc=easy,dc=com ldap group suffix = ou=Groups ldap user suffix = ou=Users ldap machine suffix = ou=Computers ldap ssl = off ldap delete dn = Yes add user script = /sbin/smbldap-useradd -m "%u" add machine script = /sbin/smbldap-useradd -t 0 -w "%u" add group script = /sbin/smbldap-groupadd -p "%g" add user to group script = /sbin/smbldap-groupmod -m "%u" "%g" delete user from group script = /sbin/smbldap-groupmod -x "%u" "%g" set primary group script = /sbin/smbldap-usermod -g '%g' '%u' vfs object = vscan-clamav vscan-oav: config-file = /etc/samba/vscan-clamav.conf
修改修改/etc/samba/目录中的vscan-clamav.conf文件,主要说明修改的关键部分,详细内容如下:
详细操作: infected file action = nothing (当找到感染的档案是否发出”警告popup 窗口”给windows) 更改为: infected file action = quarantine
修改修改/etc/目录中的clamd.conf文件,主要说明修改的关键部分,详细内容如下:
详细操作: TCPSocket 3310 (取消TCPSocket 3310) 更改为: #TCPSocket 3310
#LocalSocket /var/run/clamav/clamd.sock (clamd socket的位置) 更改为: LocalSocket /var/run/clamav/clamd.sock
User clamav (更改操作用户帐号) 更改为: User root
重新启动Samba服务项目:
详细操作: # service smb restart
关闭 SMB 服务: [ 确定 ] 关闭 NMB 服务: [ 确定 ] 启动 SMB 服务: [ 确定 ] 启动 NMB 服务: [ 确定 ]
启动Samba服务项目:
详细操作: # service clamd start
Starting Clam AntiVirus Daemon [ 确定 ]
如果看到以下的讯息表现已经成功:
详细操作:
上一篇:GoogleMaps探秘
下一篇:CSDN blog 添加音乐和天气预报效果
|