From: Steve on
I posted this on the Mandriva newsgroup, but no replies yet. Can
anuone here help please?

I have an oddity which I don't understand. I'm running Mandriva
2005LE as my main desktop with a local network behind a smoothwall
box. Until now, the network has only been for distributing
internet to 2 or 3 machines.

I've added a windows box and I want to be able to put/take files
from it. I've set it up with a shared directory and created a
guest user account. I can read/write to it from another windows
computer without any problems.

Under 'Samba mount points' MCC finds the new computer and the
shared disk and lets me define its mount point. When I try to
mount it there's a long delay and then nothing.

fstab has a new line in it: (sorry if there's a linefeed)

//newbox/F /mnt/newbox/F smbfs
credentials=/etc/samba/auth.newbox.guest 0 0

If I go to command line as su and mount /mnt/newbox/F I get the
following:
timeout connecting to 209.62.20.179:445
timeout connecting to 209.62.20.179:139
Error connecting to 209.62.20.179 (Operation already in progress)
6743: Connection to newbox failed
SMB connection failed

Whois gives 209.62.20.179 as belonging to Everyone's Internet in
Texas. My local network uses 192.168.1.100-200 for the computers.

Can anyone explain what's going on and how I make it work as intended?

I'm an analogue designer, not a computer guy, so please keep it
simple for me.

Thanks,

Steve
From: John Taylor on
Steve wrote:

>
> If I go to command line as su and mount /mnt/newbox/F I get the following:
> timeout connecting to 209.62.20.179:445
> timeout connecting to 209.62.20.179:139
> Error connecting to 209.62.20.179 (Operation already in progress)
> 6743: Connection to newbox failed
> SMB connection failed
>
> Whois gives 209.62.20.179 as belonging to Everyone's Internet in Texas.
> My local network uses 192.168.1.100-200 for the computers.
>
> Can anyone explain what's going on and how I make it work as intended?
>

Sounds like your machine doesn't know how about newbox

Try adding newbox into /etc/hosts

Regards
JohnT
From: Ian Rawlings on
On 2007-12-05, John Taylor <john(a)example.com> wrote:

> Sounds like your machine doesn't know how about newbox
>
> Try adding newbox into /etc/hosts

Probably worth him trying it with the IP addresses in fstab too, that
would prevent any errors with stuff like DNS tagging domain names on
in manners he's not expecting, IP addresses are harder to get confused
with at this stage of tracking his problem down.

--
Blast off and strike the evil Bydo empire!
From: Steve on
Ian Rawlings wrote:
> On 2007-12-05, John Taylor <john(a)example.com> wrote:
>
>> Sounds like your machine doesn't know how about newbox
>>
>> Try adding newbox into /etc/hosts
>
> Probably worth him trying it with the IP addresses in fstab too, that
> would prevent any errors with stuff like DNS tagging domain names on
> in manners he's not expecting, IP addresses are harder to get confused
> with at this stage of tracking his problem down.
>
The /etc/hosts entry has fixed it. I tried the IP in fstab
separately and got messages about not being able to resolve an
address. I didn't investigate further, it's something I'll have to
learn about when time permits.

Thanks both.

Steve
From: Chris Davies on
Steve <no-one(a)home.invalid> wrote:
> fstab has a new line in it:
> //newbox/F /mnt/newbox/F smbfs credentials=/etc/samba/auth.newbox.guest 0 0

> If I go to command line as su and mount /mnt/newbox/F I get the
> following:
> timeout connecting to 209.62.20.179:445
> timeout connecting to 209.62.20.179:139
> Error connecting to 209.62.20.179 (Operation already in progress)
> 6743: Connection to newbox failed
> SMB connection failed

Sounds like you've got a name resolution problem on the (Mandriva) client.

What's supposed to happen is that when you use an unqualified name,
such as "newbox", your name resolver appends your local domain and tries
to resolve that. If this fails then it works through a specified search
list appending domains and looking for the first match.

What I suspect is happening is that you've either not got a definition
for "newbox" in your /etc/hosts, or that your name resolver search path
is wrong.

Can you post the output of the following, please:

grep -i newbox /etc/hosts

cat /etc/resolv.conf

grep -i hosts /etc/nsswitch.conf

Chris