Linux - NetworkingThis 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.
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.
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.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.