LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-02-2005, 01:53 PM   #1
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
cannot run nmbd


Hello,

nmbd does not run automatically from an /etc/init.d/samba script, meanwhile
smbd runs well. For debugging I tried 'nmbd -i' by root, that is produced:

Netbios nameserver version 3.0.14a-Debian started.
Copyright Andrew Tridgell and the Samba Team 1994-2004
standard input is not a socket, assuming -D option
bind failed on port 137 socket_addr = 192.168.4.1.
Error = Cannot assign requested address
nmbd_subnetdb:make_subnet()
Failed to open nmb socket on interface 192.168.4.1 for port 137. Error was Cannot assign requested address
ERROR: Failed when creating subnet lists. Exiting.

Can anyone help? I have alot of problems concerning this. Please.
 
Old 11-02-2005, 04:41 PM   #2
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
Just a guess, but do you have an interface that is up and has the IP of 192.168.4.1 assigned to it?
 
Old 11-02-2005, 04:49 PM   #3
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Original Poster
Rep: Reputation: 68
Thank you, fur.

Do you ask whether I have eth0 is up? Yes, of course. But with IP it is more
difficult. IMHO you guess a route? So I can ping that host right. And
192.168.4.1 is definitely a name server. If there could be somthing else,
please ask, I will provide all necessary information.
 
Old 11-02-2005, 04:57 PM   #4
pinknick
LQ Newbie
 
Registered: Sep 2005
Posts: 25

Rep: Reputation: 17
Hi,

Does messages file says anything about it, and could you please post output of testparm and ifconfig -a command?

I also wonder if it is a firewall problem.
Please post output of: iptables -L -v -n
or turn on logging
iptables -A INPUT -j LOG -m limit --limit 15/hour
iptables -A OUTPUT -j LOG -m limit --limit 15/hour
iptables -A FORWARD -j LOG -m limit --limit 15/hour
And try to turn on SMB and see if there is anything interesting in the logs.

Regards;

Last edited by pinknick; 11-02-2005 at 05:01 PM.
 
Old 11-02-2005, 05:27 PM   #5
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Original Poster
Rep: Reputation: 68
OK,

For message does not become too big, I will post only "ifconfig eth0" output.
I am sure it is the interface SAMBA uses and it is activated:
{
eth0 Link encap:Ethernet HWaddr 00:0E:2E:08:7A:55
inet addr:192.168.4.50 Bcast:192.168.4.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1243539 errors:0 dropped:4998 overruns:0 frame:0
TX packets:25225 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:88955867 (84.8 MiB) TX bytes:5301209 (5.0 MiB)
Interrupt:5 Base address:0x6200
}

Then testparm. Left only header and the [global]:
{
Load smb config files from /etc/samba/smb.conf
Processing section "[share]"
Loaded services file OK.
# Global parameters
[global]
dos charset = 866
unix charset = KOI8-R
display charset = KOI8-R
workgroup = IN
server string = %h server (Samba %v)
interfaces = 192.168.5.1/24, 192.168.4.1/24
security = SHARE
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
syslog = 0
log file = /var/log/samba/log.%m
max log size = 10
message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
panic action = /usr/share/samba/panic-action %d
invalid users = root
}

And iptables:
{
Chain INPUT (policy ACCEPT 235K packets, 19M bytes)
pkts bytes target prot opt in out source destination

31 2418 DROP all -- eth0 * 192.168.4.50 0.0.0.0/0


Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination


Chain OUTPUT (policy ACCEPT 29456 packets, 5126K bytes)
pkts bytes target prot opt in out source destination
}

Hope it helps to concieve this problem. Please, what is wrong?
 
Old 11-02-2005, 05:32 PM   #6
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Original Poster
Rep: Reputation: 68
In addition, smbd works fine and the only message it puts down to the log
concerns the printer (I have no printer. So I have SAMBA in common.

But with names I have great problems. E.g. I cannot see myself with
nmblookup or smbtree. They do not know I am!

Now I notice that nmbd does not run. It writes in the log the messages I posted
at the beginning (the first my message in the thread).

I do not know the matter. Please help.
 
Old 11-30-2005, 05:43 PM   #7
pinknick
LQ Newbie
 
Registered: Sep 2005
Posts: 25

Rep: Reputation: 17
Hi,

Try to turn off firewall and test Samba.

/etc/init.d/iptables stop

Let us know if it work then. If yes - you need to fix the firewall config.

All the best;
 
Old 11-30-2005, 06:06 PM   #8
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Original Poster
Rep: Reputation: 68
Quote:
Originally posted by pinknick
Hi,

Try to turn off firewall and test Samba.

/etc/init.d/iptables stop

Let us know if it work then. If yes - you need to fix the firewall config.

All the best;
Thank you for the attention, but I have solved this problem already.
I have removed mention of interfaces and specified wins servers.
Now my [general] is
Code:
dos charset = 866
unix charset = KOI8-R
display charset = KOI8-R
workgroup = IN
server string = Samba %v
security = SHARE
passdb backend = tdbsam, guest
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
syslog = 0
log file = /var/log/samba/log.%m
max log size = 10
wins server = 192.168.4.1, 192.168.5.1
panic action = /usr/share/samba/panic-action %d
invalid users = root
hosts allow = 192.168.4., 192.168.5.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nmbd find_response_record saavik Linux - Networking 3 10-23-2007 05:20 AM
cant get nmbd to run in samba eroica Linux - Networking 6 11-25-2004 10:25 AM
smbd and nmbd absolutely won't run skippuff54 Linux - Networking 6 07-14-2004 02:33 AM
New kernel and nmbd Cage47 Linux - Networking 0 11-24-2003 03:09 PM
SAMBA - smbd and nmbd does not run snarzary Linux - Newbie 0 11-01-2001 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration