Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-02-2005, 02:53 PM
|
#1
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Rep:
|
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.
|
|
|
11-02-2005, 05:41 PM
|
#2
|
Member
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310
Rep:
|
Just a guess, but do you have an interface that is up and has the IP of 192.168.4.1 assigned to it?
|
|
|
11-02-2005, 05:49 PM
|
#3
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Original Poster
Rep:
|
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.
|
|
|
11-02-2005, 05:57 PM
|
#4
|
LQ Newbie
Registered: Sep 2005
Posts: 25
Rep:
|
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 06:01 PM.
|
|
|
11-02-2005, 06:27 PM
|
#5
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Original Poster
Rep:
|
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?
|
|
|
11-02-2005, 06:32 PM
|
#6
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Original Poster
Rep:
|
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.
|
|
|
11-30-2005, 06:43 PM
|
#7
|
LQ Newbie
Registered: Sep 2005
Posts: 25
Rep:
|
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;
|
|
|
11-30-2005, 07:06 PM
|
#8
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|