LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-23-2004, 10:00 AM   #1
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Rep: Reputation: 30
cant get nmbd to run in samba


hello,
i'm trying to get samba to run and one problem i'm seeing is the nmb daemon is not running. i have a simple dial-up modem that i wish to share w/a win98 machine. the output from /var/log/messages when i restart smb service is:

Nov 23 10:55:54 localhost smb: smbd shutdown succeeded
Nov 23 10:55:54 localhost smb: nmbd shutdown failed
Nov 23 10:55:54 localhost smb: smbd startup succeeded
Nov 23 10:55:55 localhost nmbd[11154]: [2004/11/23 10:55:55, 0] nmbd/nmbd_subnetdb.c:create_subnets(239)
Nov 23 10:55:55 localhost nmbd[11154]: create_subnets: No local interfaces !
Nov 23 10:55:55 localhost nmbd[11154]: [2004/11/23 10:55:55, 0] nmbd/nmbd.c:main(872)
Nov 23 10:55:55 localhost nmbd[11154]: ERROR: Failed when creating subnet lists. Exiting.
Nov 23 10:55:55 localhost smb: nmbd startup succeeded

[root@localhost *******]# /etc/init.d/smb status
smbd (pid 11144) is running...
nmbd is stopped

any suggestions on why nmb isnt running?

thanx,
alan
 
Old 11-23-2004, 10:35 AM   #2
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
try typing:

/etc/init.d/nmb start && /etc/init.d/smb

From what i understand, there two separate daemons.
 
Old 11-23-2004, 11:32 AM   #3
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Original Poster
Rep: Reputation: 30
it seems that the /etc/init.d/smb start command starts both daemons. when i try to start nmb daemon i get:
[root@localhost ***]# /etc/init.d/nmb start
bash: /etc/init.d/nmb: No such file or directory

I also notice when i try to connect to my shares i get :
[root@localhost ****]# smbclient //localhost/******/Downloads
Password:
Domain=[CARRIER] OS=[Unix] Server=[Samba 2.2.7a]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
yet when i check smb client shares i see them:
[root@localhost *****]# smbclient -L localhost
Password:
Domain=[CARRIER] OS=[Unix] Server=[Samba 2.2.7a]

Sharename Type Comment
--------- ---- -------
homes Disk
share11 Disk
IPC$ IPC IPC Service (Samba 2.2.7a)
ADMIN$ Disk IPC Service (Samba 2.2.7a)
tratman Disk Home directory of *******

Server Comment
--------- -------

Workgroup Master
--------- -------
So at this point i'm a little confused as to where I stand w/samba setup
alan
 
Old 11-23-2004, 12:58 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
The smb located in /etc/init.d/ is a script that starts the two deamons smbd & nmbd. AFAIK there isn't a seperate script to start nmbd. To start nmbd seperately log in as root and type the command in a console window:
nmbd -D

Quote:
Nov 23 10:55:55 localhost nmbd[11154]: create_subnets: No local interfaces !
nmbd will not start unless a network interface exists. ppp0 (dialup network interface) does not exist unless you have established a dialup connection.

localhost refers to the network local loopback device i.e. IP address 127.0.0.1 on every PC. You will not be able to access any linux shares from the 98 PC unless this is changed.

Add the following to the smb.conf file global section
netbios name = hostname

Where hostname is anything you want to call the linux PC. Be sure to restart samba.
 
Old 11-23-2004, 02:28 PM   #5
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Original Poster
Rep: Reputation: 30
i have established a ppp connection when i was running these commands. here is my barebones smb.conf file:

[global]
workgroup = carrier
netbios name = samba
encrypt passwords = yes

[homes]
guest ok = no
read only = no

[share11]
path = /home/*******/Downloads
guest ok = yes
read only = no


its weird too because i stop the smb service and then restart it and it says [ok}] next to both smb & nmb. and yet when i do status it shows nmb as not running. and i did this while online. looking in /var/log/messages i see the same messges as i have above in regards to the nmb service. at this point do i even need the nmb service if i just want to connect to shares on my machine. i have my win98 machine setup as workgroup carrier also. but i have to crawl b4 i walk. i need to be able to connect to my own shares first. no? does anything look out of line to you???

alan

p.s.- her's output of ifconfig while doing above commands:

[root@localhost ****]# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2138 errors:0 dropped:0 overruns:0 frame:0
TX packets:2138 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:498944 (487.2 Kb) TX bytes:498944 (487.2 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:216.194.20.228 P-t-P:216.194.31.252 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:10975 errors:0 dropped:0 overruns:0 frame:0
TX packets:7739 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:7103524 (6.7 Mb) TX bytes:1014906 (991.1 Kb)


Last edited by eroica; 11-23-2004 at 02:32 PM.
 
Old 11-23-2004, 04:45 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Its a ppp nmbd issue but I haven't found an answer yet.
 
Old 11-25-2004, 10:25 AM   #7
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Original Poster
Rep: Reputation: 30
ok here's an update. when i change the subnet mask to 255.255.255.0 using ifconfig the nmbd starts ok. the downside is my ppp connection doesnt work then. is there a way to tell the nmbd what subnet mask to use??

alan
 
  


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
cannot run nmbd Ygrex Linux - Networking 7 11-30-2005 06:06 PM
smbd and nmbd absolutely won't run skippuff54 Linux - Networking 6 07-14-2004 02:33 AM
nmbd not running (samba topic) TheDOGG Linux - Networking 1 03-01-2004 05:13 AM
Samba nmbd doesn't start Obscure *BSD 2 10-01-2003 09:32 AM
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 12:08 PM.

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