• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 766
  • Last Modified:

netbios problem under samba

I'm using samba with Solaris 2.5 (to share printers to Windows users)
but I'm getting this error in Unix.
inetd[126]: netbios-ns/udp server failing (looping), service terminated

any idea????

Thanks in advance.....
0
cblazque
Asked:
cblazque
  • 5
  • 4
1 Solution
 
ahoffmannCommented:
use
   netstat -a

and check if the port for netbios-ns is already in use
0
 
cblazqueAuthor Commented:
This is the result of netstat -a

UDP
   Local Address      State
-------------------- -------
      *.route         Idle
      *.*             Unbound
      *.sunrpc        Idle
      *.*             Unbound
      *.32771         Idle
      *.name          Idle
      *.biff          Idle
      *.talk          Idle
      *.time          Idle
      *.echo          Idle
      *.discard       Idle
      *.daytime       Idle
      *.chargen       Idle
      *.32772         Idle
      *.32773         Idle
      *.32774         Idle
      *.32775         Idle
      *.lockd         Idle
      *.32776         Idle
      *.32777         Idle
      *.32778         Idle
      *.32779         Idle
      *.syslog        Idle
      *.netbios-      Idle
      *.138           Idle
colc026.netbios-      Idle
colc026.138           Idle
192.168.0.3.netbios-  Idle
192.168.0.3.138       Idle
      *.*             Unbound

TCP
   Local Address        Remote Address    Swind Send-Q Rwind Recv-Q  State
-------------------- -------------------- ----- ------ ----- ------ -------
      *.*                  *.*                0      0     0      0 IDLE
      *.sunrpc             *.*                0      0     0      0 LISTEN
      *.32932              *.*                0      0     0      0 IDLE
      *.ftp                *.*                0      0     0      0 LISTEN
      *.telnet             *.*                0      0     0      0 LISTEN
      *.shell              *.*                0      0     0      0 LISTEN
      *.login              *.*                0      0     0      0 LISTEN
      *.exec               *.*                0      0     0      0 LISTEN
      *.uucp               *.*                0      0     0      0 LISTEN
      *.finger             *.*                0      0     0      0 LISTEN
      *.time               *.*                0      0     0      0 LISTEN
      *.echo               *.*                0      0     0      0 LISTEN
      *.discard            *.*                0      0     0      0 LISTEN
      *.daytime            *.*                0      0     0      0 LISTEN
      *.chargen            *.*                0      0     0      0 LISTEN
      *.32771              *.*                0      0     0      0 LISTEN
      *.32772              *.*                0      0     0      0 LISTEN
      *.lockd              *.*                0      0     0      0 LISTEN
      *.32773              *.*                0      0     0      0 LISTEN
      *.32774              *.*                0      0     0      0 LISTEN
      *.fs                 *.*                0      0     0      0 LISTEN
      *.swat               *.*                0      0     0      0 LISTEN
      *.netbios-           *.*                0      0     0      0 LISTEN
      *.smtp               *.*                0      0     0      0 LISTEN
      *.printer            *.*                0      0     0      0 LISTEN
      *.listen             *.*                0      0     0      0 LISTEN
      *.6000               *.*                0      0     0      0 LISTEN
      *.32778              *.*                0      0     0      0 LISTEN
localhost.32780      localhost.32773      32768      0  8192      0 ESTABLISHED
localhost.32773      localhost.32780       8192      0 32768      0 ESTABLISHED
localhost.32783      localhost.32773      32768      0  8192      0 ESTABLISHED
localhost.32773      localhost.32783       8192      0 32768      0 ESTABLISHED
colc026.32823        colm002.telnet       24820      0  8760      0 ESTABLISHED
colc026.32824        colm002.telnet       24820      0  8760      0 ESTABLISHED
      *.32931              *.*                0      0     0      0 LISTEN
      *.*                  *.*                0      0     0      0 IDLE
Active UNIX domain sockets
Address  Type          Vnode     Conn Addr
f5cc4198 stream-ord        8        0 /tmp/.X11-unix/X0
0
 
ahoffmannCommented:
as you can see, there are already processes listening on these ports, check with ps
0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
cblazqueAuthor Commented:
Which one is the duplicated process number????

these are the entries in /etc/services

netbios-ssn     139/tcp                         # Samba
netbios-ns      137/udp                         # Samba
0
 
ahoffmannCommented:
/etc/services just maps port numbers to names
Please use ps to check if smbd or nmbd is running
0
 
cblazqueAuthor Commented:
only nmbd is running

root   217     1  0   Jul 24 ?        0:56 /opt/samba/bin/nmbd -D -d 0 -l /var/opt/samba/log.nmb
0
 
cblazqueAuthor Commented:
only nmbd is running

root   217     1  0   Jul 24 ?        0:56 /opt/samba/bin/nmbd -D -d 0 -l /var/opt/samba/log.nmb
0
 
ahoffmannCommented:
you need to decide if you want Samba be running as daemon, or tarted via inetd (portmapper).
As you still have the nmbd daemon, I suggest that you remove the smbd and nmbd (port 137, 138, 139) lines in /etc/inetd.conf, then stop and start the appropriate rc-script, for example /etc/init.d/samba
0
 
cblazqueAuthor Commented:
It worked , thanks...
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now