
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] Networking two Linux computers harder than Linux to Windows?
- Date: Thu, 5 Apr 2007 16:13:39 +0900
- From: Stephen Lee <sl-tlug@example.com>
- Subject: Re: [tlug] Networking two Linux computers harder than Linux to Windows?
- References: <45B8632C.5010401@example.com> <f118b8b90701250002m6aacf9dcncba0d3016aea2da2@example.com> <43708.210.168.237.209.1169714119.squirrel@example.com> <d8fcc0800701250106o33084aaan191462eee58e388b@example.com> <45B8C745.6080803@example.com> <20070125162927.61d2bb33.godwin.stewart@example.com> <Pine.NEB.4.64.0701260902270.10228@example.com> <20070126132810.76ca8f05.godwin.stewart@example.com> <Pine.NEB.4.64.0701270736190.19504@example.com> <46138815.1060709@example.com> <20070404125400.GB83321@example.com> <4613B00C.7000405@example.com> <46149486.3040103@example.com>
Dave M G <martin@example.com> wrote:
> sudo mount -t smbfs -o
> username=fileserver,password=[password],uid=`whoami`,fmask=000,dmask=000
> //192.168.0.1/home/fileserver /home/`whoami`/Network
[...]
> Error connecting to 192.168.0.1 (Connection refused)
> 5097: Connection to 192.168.0.1 failed
> SMB connection failed
[...]
> What is not clear to me is where the refusal is happening. So far as I
> can tell, I've opened the permissions on all the relevant directories. I
> think I have the right names and passwords.
I would check:
- If the smb daemons running on 192.168.0.1
run 'ps ax' and see if 'smbd' and 'nmbd' are running.
- If the daemons are actually listening
run 'netstat -tuln' and see if the smb ports (TCP 137, 139, 445,
UDP 137, 138, 445) are in the list, and note if they are listening
on the correct addresses.
<http://support.microsoft.com/kb/204279>
- If your firewall is blocking the connections
run '/sbin/iptables -L -n' and check if the above ports are blocked
at your firewall. (It will either be DROPed explicitly or implicitly
at the end of the INPUT chain usually)
Not sure how you change it in Ubuntu, perhaps somebody on this list
can help. In general you don't want to open those ports to the world,
only your local network segment (192.168.0.x/24 in your example) or
ideally your GF's computer only.
You can also try connecting locally from your fileserver using the loopback addresss 127.0.0.1. If this succeeds you know at least the daemons are running correctly.
Also, it seems that this is related to you not being able to connect by name, since if nmbd is running correctly you should be able to. You can try again once you get samba working correctly with IP addresses, though I wouldn't bother if your computer's IP doesn't change frequently.
Stephen Lee
--
Stephen Lee <sl-tlug@example.com>
Home |
Main Index |
Thread Index