ar_it Apprentice
Joined: 25 Feb 2006 Posts: 212 Location: Poland/Warsaw
|
Posted: Tue May 23, 2006 3:40 pm Post subject: [SOLVED][Siec]Samba+clamd+vscan problem |
|
|
Witam
Chce spowodowac, aby samba skanowala wszystkie pliki antywirusem.
Robilem w/g tego http://www.gentoo.org/doc/pl/quick-samba-howto.xml
configi
Code: |
cat /etc/samba/smb.conf
[global]
message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
dos charset = CP1250
unix charset = ISO8859-2
display charset = ISO8859-2
dos file times = yes
workgroup = MSHOME
server string = %h (Samba, FMM)
interfaces = lo eth0
bind interfaces only = yes
security = SHARE
guest account = samba
guest ok = yes
nt pipe support = yes
nt acl support = no
time server = True
local master = yes
preferred master = yes
wins support = yes
os level = 64
null passwords = Yes
obey pam restrictions = Yes
passdb backend = tdbsam, guest
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spas
sword:* %n\n .
username map = /etc/samba/smbusers
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
wins server = 10.0.0.1
ldap ssl = no
panic action = /usr/share/samba/panic-action %d
invalid users = root
preserve case = no
short preserve case = no
hide dot files = yes
socket options = TCP_NODELAY SO_SNDBUF=16384 SO_RCVBUF=16384 IPTOS_LOWDE
LAY
read raw = yes
write raw = yes
getwd cache = yes
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
name resolve order = wins lmhosts hosts bcast
[homes]
comment = Home Directories
create mask = 0700
directory mask = 0700
browseable = No
[public]
comment = Public Files
browseable = yes
public = yes
create mode = 0766
guest ok = yes
path = /mnt/dane/public
writable = yes
|
Code: |
cat /etc/samba/vscan-clamav.conf
max file size = 5242880
verbose file logging = no
scan on open = yes
scan on close = yes
deny access on error = yes
deny access on minor error = yes
send warning message = yes
infected file action = delete
quarantine directory = /tmp
quarantine prefix = vir-
max lru files entries = 100
lru file entry lifetime = 5
clamd socket name = /tmp/clamd
oav port = 8127
|
Code: |
/etc/conf.d/clamd
START_CLAMD=yes
START_FRESHCLAM=yes
|
Code: |
cat /etc/clamd.conf
LogFile /var/log/clamav/clamd.log
LogTime
PidFile /var/run/clamav/clamd.pid
LocalSocket /var/run/clamav/clamd.sock
FixStaleSocket
User clamav
|
wszystko by było pieknie gdy w logach nie dostawal tego
Code: |
tux smbd_vscan-clamav[14764]: ERROR: can not connect to clamd (socket: '/tmp/clamd')!
|
Nie wiem dlaczego nie dziala.
SKLEJONE
OK
Naprawiłem.
Problem byl blachy.
Podealem zla scierzke do socetu. _________________ ar_it
https://www.teamquest.pl/
Last edited by ar_it on Tue May 23, 2006 3:51 pm; edited 1 time in total |
|