[samba] Samba errors

LIO lionews на mail.ru
Вт Фев 21 12:59:50 MSK 2006


Здравствуйте.

ALM2.4 Samba v3.0.5 (без апдейтов, чистая система с дисков)

Может мне кто-нибудь подскажет что бы это значило:
регулярно вылезает в лог вот такие сообщения
Feb 20 15:01:01 router crond[5394]: (root) CMD (run-parts /etc/cron.hourly)
Feb 20 15:04:02 router smbd[5405]: [2006/02/20 15:04:02, 0] lib/util_sock.c:get_peer_addr(978)
Feb 20 15:04:02 router smbd[5405]:   getpeername failed. Error was Transport endpoint is not connected
Feb 20 15:04:02 router smbd[5405]: [2006/02/20 15:04:02, 0] lib/util_sock.c:get_peer_addr(978)
Feb 20 15:04:02 router smbd[5405]:   getpeername failed. Error was Transport endpoint is not connected
Feb 20 15:04:02 router smbd[5405]: [2006/02/20 15:04:02, 0] lib/access.c:check_access(328)
Feb 20 15:04:02 router smbd[5405]: [2006/02/20 15:04:02, 0] lib/util_sock.c:get_peer_addr(978)
Feb 20 15:04:02 router smbd[5405]:   getpeername failed. Error was Transport endpoint is not connected
Feb 20 15:04:02 router smbd[5405]:   Denied connection from  (0.0.0.0)
Feb 20 15:04:02 router smbd[5405]: [2006/02/20 15:04:02, 1] smbd/process.c:process_smb(883)
Feb 20 15:04:02 router smbd[5405]: [2006/02/20 15:04:02, 0] lib/util_sock.c:get_peer_addr(978)
Feb 20 15:04:02 router smbd[5405]:   getpeername failed. Error was Transport endpoint is not connected
Feb 20 15:04:02 router smbd[5405]:   Connection denied from 0.0.0.0
Feb 20 15:04:02 router smbd[5405]: [2006/02/20 15:04:02, 0] lib/util_sock.c:write_socket_data(413)
Feb 20 15:04:02 router smbd[5405]:   write_socket_data: write failure. Error = Connection reset by peer
Feb 20 15:04:02 router smbd[5405]: [2006/02/20 15:04:02, 0] lib/util_sock.c:write_socket(438)
Feb 20 15:04:02 router smbd[5405]:   write_socket: Error writing 5 bytes to socket 8: ERRNO = Connection reset by peer
Feb 20 15:04:02 router smbd[5405]: [2006/02/20 15:04:02, 0] lib/util_sock.c:send_smb(630)
Feb 20 15:04:02 router smbd[5405]:   Error writing 5 bytes to client. -1. (Connection reset by peer)
Feb 20 15:08:53 router smbd[5276]: [2006/02/20 15:08:53, 1] smbd/service.c:close_cnum(801)
Feb 20 15:08:53 router smbd[5276]:   lio (192.168.19.2) closed connection to service www

При этом всё работает нормально, не тормозит. Глюков нет (по крайней
мере я их не вижу)

====smb.conf====
# Global parameters
[global]
        dos charset = CP866
        unix charset = KOI8-R
        display charset = KOI8-R
        workgroup = MYNET
        netbios name = BUG
        server string =
        interfaces = 192.168.1.1/24, 127.0.0.1/8
        bind interfaces only = Yes
        map to guest = Bad User
        null passwords = Yes
        log level = 2
        syslog = 2
        log file = /var/log/samba/log.%m
        max log size = 500
        name resolve order = wins lmhosts bcast
        time server = Yes
        deadtime = 15
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        load printers = No
        disable spoolss = Yes
        show add printer wizard = No
        os level = 255
        preferred master = Yes
        domain master = Yes
        dns proxy = No
        wins support = Yes
        hosts allow = 192.168.1., 127.
        hide special files = Yes

[buffer]
        path = /home/samba/buffer
        force user = nobody
        force group = nobody
        read only = No
        create mask = 0664
        force create mode = 0664
        directory mask = 0775
        force directory mode = 0775
        guest ok = Yes

[homes]
        comment = Home Directory for '%u'
        path = /home/samba/%u
        read only = No
        create mask = 0640
        directory mask = 0750
        browseable = No
        
[www]
        comment = web folder
        path = /var/www/html
        valid users = lio
        force group = webmaster
        read only = No
        create mask = 0640
        force create mode = 0640
        directory mask = 0750
        force directory mode = 0750
        browseable = No
        
====dhcpd.conf====
authoritative;

ddns-update-style none;
use-host-decl-names true;

default-lease-time 86400; #24h
max-lease-time 93600; #26h

subnet 192.168.1.0 netmask 255.255.255.0 {
    range 192.168.1.2 192.168.1.9;
    option broadcast-address 192.168.1.255;
    option subnet-mask 255.255.255.0;
    option domain-name "mynet";
    option netbios-name-servers 192.168.1.1;
    option netbios-dd-server 192.168.1.1;
    option netbios-node-type 8;  #1-bcast; 2-wins; 4-bcast,wins; 8-wins,bcast

Да, может кто знает?
Зачем это "option netbios-dd-server 192.168.1.1;"?
Я поставил так как в большинстве найденных мною описаний эта строка
имела место. Или чтобы дай клиентам понять что есть Wins достаточно
"option netbios-name-servers 192.168.1.1;"

PS: На машине стоит netfilter (iptables), но без него (all accept)
самба ошибки всё равно не реже вываливает.

-- 
Best regards,
 LIO                            mailto:lionews на mail.ru



Подробная информация о списке рассылки Samba