Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED][Siec]Samba+clamd+vscan problem
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
ar_it
Apprentice
Apprentice


Joined: 25 Feb 2006
Posts: 212
Location: Poland/Warsaw

PostPosted: Tue May 23, 2006 3:40 pm    Post subject: [SOLVED][Siec]Samba+clamd+vscan problem Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum