Solved

netbios problem under samba

Posted on 2002-07-29
9
743 Views
Last Modified: 2013-12-23
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
Comment
Question by:cblazque
  • 5
  • 4
9 Comments
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
use
   netstat -a

and check if the port for netbios-ns is already in use
0
 

Author Comment

by:cblazque
Comment Utility
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
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
as you can see, there are already processes listening on these ports, check with ps
0
 

Author Comment

by:cblazque
Comment Utility
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
/etc/services just maps port numbers to names
Please use ps to check if smbd or nmbd is running
0
 

Author Comment

by:cblazque
Comment Utility
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
 

Author Comment

by:cblazque
Comment Utility
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
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
Comment Utility
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
 

Author Comment

by:cblazque
Comment Utility
It worked , thanks...
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Let’s list some of the technologies that enable smooth teleworking. 
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now