Samba problem -> read_fd_with_timeout & get_peer_addr_internal (607 Views)
Reply
Occasional Contributor
Mat_Name
Posts: 3
Registered: ‎04-16-2013
Message 1 of 3 (607 Views)

Samba problem -> read_fd_with_timeout & get_peer_addr_internal

[ Edited ]

Hi there,

 

my /var/adm/syslog/syslog.log and /var/opt/samba/log/log.nmbd collects some messages like:

 

smbd[2556]: lib/util_sock.c:536(read_fd_with_timeout)
smbd[2556]: lib/util_sock.c:1509(get_peer_addr_internal)
smbd[2556]: getpeername failed. Error was invalid argument
smbd[2556]: read_fd_with_timeout: client 0.0.0.0 read error = invalid argument

 

Everything seems to be fine. Samba works perfect but why we get there errors?

There must be a problem. Could anybody give my an advice so solve my problem?

 

Thanks a lot.

 

 

P.S. This thread has been moved from HP-UX > General to HP-UX > networking. - Hp Forum Moderator

Advisor
Sachin Rajput
Posts: 22
Registered: ‎10-26-2007
Message 2 of 3 (441 Views)

Re: Samba problem -> read_fd_with_timeout & get_peer_addr_internal

IN smb.conf if you have the line of

 

interface xxxxxxxxx

 

remove it and restart smb servieces .

 

Issue should be resolved .



Sachin Rajput
================
Occasional Visitor
jmoor408
Posts: 1
Registered: ‎10-07-2014
Message 3 of 3 (158 Views)

Re: Samba problem -> read_fd_with_timeout & get_peer_addr_internal

Hello,

 

I am having the same errors in log and lack of end user impact.  I recently inherited this enviornment and I have smb.conf files all over the place on the server.  However if ps -ef|grep samba I get  

 

    root  2810  2780  0  Aug 17  ?         0:00 /opt/samba/bin/smbd -D -s /etc/opt/samba/smb.conf
    root  2777     1  0  Aug 17  ?         2:14 /opt/samba/bin/nmbd -D -s /etc/opt/samba/smb.conf
    root  2780     1  0  Aug 17  ?         0:19 /opt/samba/bin/smbd -D -s /etc/opt/samba/smb.conf
    root 25772  2780  0 07:19:39 ?         0:43 /opt/samba/bin/smbd -D -s /etc/opt/samba/smb.conf
    root  2988  2780  0 08:07:24 ?         1:37 /opt/samba/bin/smbd -D -s /etc/opt/samba/smb.conf
    root 22762  8731  0 16:26:10 pts/7     0:00 grep samba
    root 18098  2780  0 06:59:42 ?         0:41 /opt/samba/bin/smbd -D -s /etc/opt/samba/smb.conf

 

When I check /etc/opt/samba/smb.conf

I have the following and no interfaces entry:

 

server [ /var/opt/samba ]# more /etc/opt/samba/smb.conf
# Samba config file created using SWAT
# from UNKNOWN ()
# Date: 2013/01/29 15:14:07

[global]
        workgroup = Confidential
        server string = Confidential Samba 3.4.3
        passwd chat debug = Yes
        log level = 1
        log file = /var/opt/samba/log.%m
        disable netbios = Yes
        load printers = No
        show add printer wizard = No
        lm announce = No
        local master = No
        domain master = No
        browse list = No
        enhanced browsing = No
        panic action = /usr/local/scripts/samba
        read only = No
        create mask = 0774
        dos filetime resolution = Yes

[OMA]
        comment = Share for Confidential Archiving
        path = /ops/Confidential
        valid users = +Confidential, +Confidentialread
        read list = +Confidentialread
        write list = +Confidential
        directory mask = 0775
        hide special files = Yes
        hide unreadable = Yes
        hide unwriteable files = Yes
        hide files = /~*/

[source_code]
        comment = Source Code for Confidential
        path = /srcd
        valid users = user1, user2, user3

[OMA]
        comment = Share for Confidential Archiving
        path = /ops/Confidential
        valid users = +Confidential, +Confidentialread
        read list = +Confidentialread
        write list = +Confidential
        directory mask = 0775
        hide special files = Yes
        hide unreadable = Yes
        hide unwriteable files = Yes
        hide files = /~*/

 

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.