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. |
Just a guess, but do you have an interface that is up and has the IP of 192.168.4.1 assigned to it?
|
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. |
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; |
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? |
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. |
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; |
Quote:
I have removed mention of interfaces and specified wins servers. Now my [general] is Code:
dos charset = 866 |
All times are GMT -5. The time now is 02:47 PM. |