LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-25-2006, 06:48 PM   #1
nico562
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Rep: Reputation: 0
smbd and nmbd not startet in gentoo?


Hi, im haveing some probs with my new gentoo install.

im haveing trouble getting samba to work correctly.


the situation is, that it seems as if the two daemons are startet - so im told by the terminal, but all signs point at they arent!

at boot, i get told, when init runs the scripts in /etc/runlevels/default (runlevel3) - that the samba script gets run and startet succesfully by:

samba -> start: smbd... [OK]
samba -> start: nmbd... [OK]


...
but when i later did
"smbclient -L localhost" (or 127.0.0.1)
..i got:
error connectiing (Connection reset by peer)

...
This narrowed it down to 2 options
1)either the daemons were not running
2)the ports where not activated / in "LISTIN"

but since the boot told me they were, i concluded it was the port for samba

...
okey, so i found out that i had no /etc/inetd/ !!!
and since i couldnt find it in portage-tree, i decided to go with "xinetd"
-
i added the following file:
/etc/xinet.d/netbios-nns

with the content of:
service netbios-ssn
{
socket_type = stream
protocol = tcp
wait = yes
user = root
server = /usr/sbin/smbd
server_args = -D
disable = no
bind = 127.0.0.1
}


..and tried the command: netstat -a
which showed me that i had a TCP-port in listin state now!:

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:swat *:* LISTEN
tcp 0 0 localhost.l:netbios-ssn *:* LISTEN
tcp 0 0 *:distcc *:* LISTEN
udp 0 0 localhost.lo:netbios-ns *:*
udp 0 0 *:bootpc *:*
Active UNIX domain sockets (servers and established)


but is was still unable to get listed shares via ""smbclient -L localhost" (or 127.0.0.1)"
...

okey i now thought i would see what SWAT said to all of this, so i enabled swat by in the:

/etc/xinetd.d/swat
-----------------
service swat
{

port = 901
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
only_from = localhost

}


...

i opened swat by "http ://127.0.0.1:901"

and saw to my surprise that smbd and nmbd were NOT running!
which made sense since the error by"smbclient -L localhost" could be caused by the daemon not running too!

::::

i have since tried restating my box, and samba services by "/etc/init.d/samba restart/start/stop"

ive made sure that xinetd also was running by doing the same.


Help?

Last edited by nico562; 03-25-2006 at 06:51 PM.
 
Old 03-25-2006, 08:26 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You should generally not be running smbd/nmbd through xinetd. They can easily run as their own daemon processes. smbd and nmbd cannot run if xinetd is already bound to the port(s) in question.
 
Old 03-26-2006, 03:54 AM   #3
nico562
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Matir
You should generally not be running smbd/nmbd through xinetd. They can easily run as their own daemon processes. smbd and nmbd cannot run if xinetd is already bound to the port(s) in question.
oh, but i thought that xinetd, like opened the ports FOR samba?
and then swat wont work, will it?
 
Old 03-26-2006, 04:42 AM   #4
nico562
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Original Poster
Rep: Reputation: 0
okey, its up and running now, thanks !

i noticed that everytime i was shutting samba down i got:

samba -> stop: smbd ... [ !! ]
samba -> stop: nmbd ... [OK]

wired!... so i tried ps -e | grep smbd (after making sure that i had manually started it)
and the daemon was not in the PS list!

Then this is what i did:
-removed xinetd
-updated samba to newest version

..and now she works!

BUT there is one problem left now. since xinetd was the one making sure SWAT's port was open, i cant access swat because of no-open port ! - im pretty blank on how to dealing with this.

thanks in advance
 
  


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
smbd and nmbd aproan Linux - Networking 1 02-05-2005 07:19 PM
smbd and nmbd missing PhilHalf Linux - General 1 01-28-2003 07:55 AM
smbd and nmbd artman62 Linux - Networking 3 06-27-2002 06:14 PM
smbd and nmbd iquadri1 Linux - Networking 0 09-29-2001 01:41 PM
xinetd and smbd/nmbd suselinux Linux - Networking 3 09-05-2001 10:00 AM

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

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