Samba server only reachable by IP address, not showing in Network Neighbourhood
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.
Samba server only reachable by IP address, not showing in Network Neighbourhood
I have a recent install, yesterday, of Samba 3.0.0 on RH9 and there is only one system in my office, the one at my desk ofcourse, that the samba server shows in Network Neighbourhood. The server is reachable from others by typing the IP address into the Map Network Drive dialog box, and from then works as expected. Any ideas?
Also, I am trying set up a share on the same server that a user does not have to type in a user or password, basically all people can access the same share with full read/write, just like a "Guest" account on Windows. I know this is a bad idea in terms of security, but we are behind a firewall and I am still in the process of convincing my boss that we should change this scheme.
All systems trying to connect are running Win2000 Pro
For the name problem check to see if you have any firewall rules blocking ports 137&138 UDP and that nmbd is running. Post the output of this if you are unsure:
iptables -L
netstat -nlp
For a public share just put this in your share definition:
public = yes
Doesn't W2K use DNS even for local network name resolution, does it? So you'll need an internal DNS server for proper name resolution. (may be not).
You can still resolve the problem manually. Just add your Samba host to W2K hosts file - c:\winnt\system32\drivers\etc\hosts. Then everyone finds your Samba server by host name.
I ran into the iptables issue yesterday and solved it by killing the service. It is not needed as the machine will (is) behind a firewall.
To me it appears that ports 137&138 are open. Really not sure what is going on since the one machine that sees the server in Network Neighbourhood took no coaxing whatsoever, it was just there.
I tried the public=yes but it stills asks for a password. I will post my conf file later if needed.
thanks again for the help
mdkelly
I added the server name to the hosts file and the server is now accessible through its name when I go through the Map Network Drive dialog box, It still does not appear in Network Neighbourhood
Last edited by mdkelly069; 11-04-2003 at 02:50 PM.
The only firewall in the office is our proxy/firewall that leads out to the net and it should have no effect on the file server as it comes nowhere near it
It sounds like your master browser isn't picking up the machine - try making linux become the master browser - add this to the global section:
local master = yes
os level = 65
preferred master = yes
Then restart the samba services - give it a minute or two to kick in.
Tried the changes to the smb.conf file, actually I changed them about an hour ago, and there is still no difference.
I restarted both smbd and nmbd and let everything just sit, no change. All machines I have sat down at will still allow me to connect when I map a drive and use the IP address. The only machine that sees the server in Network Neighbourhood is still the machine sitting on my desk. Basically there is no change whatsoever.
Thank you all for your suggetions and I hope you have more as I really need to get this sorted out.
Cheers
mdkelly
The other thing is that my share "testserver" as listed above in my .conf file is not allowing "guest" access, it is still requiring a username and password.
Thanks again
Last edited by mdkelly069; 11-04-2003 at 05:18 PM.
>Doesn't W2K use DNS even for local network name resolution, does it?
AFAIK it uses both domain names and NETBIOS names. Network
neighbourhood shows NETBIOS names.
>So you'll need an internal DNS server for proper name resolution.
No, lots of places use windows networking without an internet nameserver
or with one that only resolves internet addresses not the addresses of LAN machines.
>You can still resolve the problem manually. Just add your Samba host >to W2K hosts file - c:\winnt\system32\drivers\etc\hosts. Then everyone >finds your Samba server by host name.
Or in the lmhosts.sam file which provides fixed mapping of NETBIOS names.
Regarding the problem of the machine not appearing in network
neighborhood, are all the machines in the same ip subnet?
They are probably doing NETBIOS over tcp so if they are using different broadcast addresses they may not find each other.
Well I have made it worse. On the only machine that could see the server in Network Neighbourhood I decided to change the login so it matched a username I had as a samba user. Well as soon as I did that and restarted, the Samba server was no longer visible, but, I was able to log right in to share I has set up without having to enter a username and password.
I guess you have to take 2 steps back to take one forward
Going to go play more and see what happens, maybe three steps back
If I go into Win Explorer and in the address bar I type
\\192.168.0.197\ (server IP)
I get the server share in the left hand pane, but it is showing the server as part of the workgroup "Unknown". However, on the one machine that does see it it is part of the correct workgroup "Komex"
Also, and probably a big one, the internal network uses the IPX/SPX protocol and, please correct me if I am wrong, Samba uses NetBIOS over TCP/IP.
zaphodiv:
As far as I now all the machines are using the same IP subnet 255.255.255.0. I only say as far as I know because the only ones I can say for sure are the ones I have looked at in the last couple of days. Some users may have changed theirs, but I doubt it very much.
I, and a co-worker, discovered this morning that the reason none of the machines, except the one I work at, could see the Samba server was that in Internet Protocol (TCP/IP) >> Properties >> Advanced >> Wins >> NetBIOS over TCP/IP had been disabled. Once I re-enabled it on a couple of machines the server popped right up and my test shares were accessible.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.