Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I'm having a couple of networking problems which I suspect are related.
My host box is Mandrake 9.1, with two network cards - one for the cable modem and one for the internal network (IP: 192.168.1.1)
The client is Windows 2000, it is configured by DCHP to the linux box and currently has an IP address of 192.168.1.252
Both are in the 'mdkgroup' workgroup.
When I access webmin on the linux box it works fine (https://localhost:10000), but when I try to access it from windows (Mozilla 1.4 and IE5) I am told the connection is refused. I have checked and it is set to allow access from all IP addresses.
My second problem is with samba. When I first setup a share I could access it no problem, but now it has stopped working, I think this broke when the computer was first rebooted. For a while I could see the computer in Network Neighbourhood, but now it is not even then. I have tried Start > Run > \\192.168.1.1 but it tells me "The Network Path was not found". I have tried restarting samba in webmin, but this does not make any difference.
I can ping the linux machine fine, and I am even using it as the host for internet connection sharing, but I can't get these working. Does anyone have any ideas?
Distribution: Mainly Debian, some Fedora for the bleeding edge fix
Posts: 92
Rep:
hmmm.. are you sure samba IS installed?
try looking in /etc/samba for the smb.conf file.
maybe smbd is not in your path but i think that is unlikely.
Try searching for smbd and nmbd and start them from their home dirs if they exist. otherwise try reinstalling the samba suite.
I found smbd in /usr/sbin and ran the 3 commands you mentioned from that directory. They all returned to the command prompt fairly quickly with no message.
I had a look at the logs. The last entry in nmbd.log is:
Quote:
Netbios nameserver version 2.2.7a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/08/28 09:46:10, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(404)
*****
Samba name server DHCP-260-16119 is now a local master browser for workgroup MDKGROUP on subnet [my internet ip address]
Samba name server DHCP-260-16119 is now a local master browser for workgroup MDKGROUP on subnet 192.168.1.1
*****
Higher up in the log it refers to "samba nameserver TIGER" (which is what the computer should be called). For some reason this name has been lost.
The last entry in smbd.log is
Quote:
Netbios nameserver version 2.2.7a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/08/28 09:46:10, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(404)
*****
Samba name server DHCP-260-16119 is now a local master browser for workgroup MDKGROUP on subnet 82.32.59.228
I have managed to rename the computer to tiger using webmin, but I still can't access it.
I have also tried setting up SSH, and I cannot access that from my other computer either - it says connection refused. I am starting to think that possibly I have some form of firewall blocking these that I don't remember installing. I looked around webmin and have played with some shorewall settings, but with no difference.
If anyone is interested the problem turned out to be the iptables firewall. If you configure it using shorewall then there are instructions for allowing samba to work on http://www.shorewall.net/samba.htm
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.