LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-09-2002, 09:58 AM   #1
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Rep: Reputation: 30
Samba wont start


When i rebooted i noticed that although the system reported that smb and nmb actually started but it really didnt. On an nmap localhost the netbios port was not open... i tried to start samba from the status area on SWAT and it reported that smb was not running... i pressed the restart and start button and nothing happened...

what do i need to do to get it running again?
 
Old 02-09-2002, 09:25 PM   #2
NMX
Member
 
Registered: Jan 2002
Location: Buenos Aires, Argentina
Distribution: Slackware, LFS
Posts: 32

Rep: Reputation: 15
does it start by the inet superserver or by hand?

you should try

nmbd -D
smbd -D

from the command prompt..

then, to check if its working...

smbclient -L localhost
 
Old 02-09-2002, 10:01 PM   #3
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Where is your smb.conf file? Sometimes the smbd nor the nmbd daemons will start if they can't fine the file.

Try to start smbd with debug turned on and look at the output int he smbd.log file.

smbd -debuglevel 10 -D
 
Old 02-09-2002, 11:10 PM   #4
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
smb.conf is where it always is...

also, starting samba from the cli will start with an ok but then fails... i run a nmap localhost and the netbios port is not opened up either...

when i try to start with swat it wont start running..

what gives?
 
Old 02-10-2002, 07:49 AM   #5
NMX
Member
 
Registered: Jan 2002
Location: Buenos Aires, Argentina
Distribution: Slackware, LFS
Posts: 32

Rep: Reputation: 15
first of all...remember you need to have these lines in your /etc/services file...

netbios-ns 137/udp
netbios-ns 137/tcp
netbios-dgm 138/udp
netbios-dgm 138/tcp
netbios-ssn 139/tcp
netbios-ssn 139/udp


then check if your smb.conf file is helthy with testparm

also check out in your inet.conf file if these lines appear

netbios-ssn stream tcp nowait root /usr/bin/smbd smbd
netbios-ns dgram udp wait root /usr/bin/nmbd nmbd

if these lines appear, it means that samba is being executed from the inet superserver, so dont run smbd,nmbd from the command line...

but if those lines aren`t there, you would like to start your samba by smbd -D, nmbd -D.

post what happens when typing

smbclient -L localhost




remember that after changing any config file, you should restart the program by typing

kill -HUP proccesid

PD: your 139 port is not open because samba didnt start, not a firewall problem or sth like that....

GOOOOOOOD LUUUUUUUCKKKK
 
Old 02-10-2002, 07:00 PM   #6
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
139 tcp netbios is included in the etc/service file... and i dont seem to have an inetd.conf file... someone tells me that xinetd is what is used and i have no clue whatsoever how to edit that...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
x wont start! Username[SWE] Debian 5 08-02-2004 04:17 PM
x wont start jsmarshall85 Debian 14 07-22-2004 04:41 PM
Samba wont start garr0323 Linux - Newbie 39 10-14-2003 03:31 PM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

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

All times are GMT -5. The time now is 11:21 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