Networking Forums

Networking Forums > Computer Networking > Linux Networking > can not connect from Win2K to Samba

Reply
Thread Tools Display Modes

can not connect from Win2K to Samba

 
 
Jeff Godfrey
Guest
Posts: n/a

 
      03-02-2004, 12:13 AM
I am having trouble getting my Win2K machine to connect to the shared
directory on my samba server. This is my smb.conf file; it is simple
for now, so I can just get a connection.

#======================= Global Settings
=====================================
[global]
username map = /etc/samba/smbusers
workgroup = ephrata
server string = ephrata samba server
hosts allow = 199.156.201/255.255.255.0
encrypt passwords = yes
valid users = jgodfrey

#============================ Share Definitions
==============================
[temp_share]
comment = test share for samba
path = /temp_share
writeable = yes


I can see the samba server in the network neighbor hood from the Win2K
machine, but once I try to double click on it to access the share I
get the following error: Network path not found
I am using samba 3.0
Is my problem in the smb.conf file or on the Win2K machine?
My samba user, jgodfrey, is listed in the smbusers and smbpasswd
files.
The smbusers lists the following: jgodfrey = jeff.godfrey
jeff.godfrey is my windows login and the smbpasswd files has my
encryped windows password. So, I was understood that would allow me
to access the samba share from the windows machine? Or did I
missunderstand?

Thank you for the help
Jeff
 
Reply With Quote
 
 
 
 
Michael Buchenrieder
Guest
Posts: n/a

 
      03-02-2004, 05:31 AM
jeff-(E-Mail Removed) (Jeff Godfrey) writes:

[...]

>I can see the samba server in the network neighbor hood from the Win2K
>machine, but once I try to double click on it to access the share I
>get the following error: Network path not found


[...]

This is not a SAMBA but a DNS issue. Your Win2K machine tries
to resolve the IP address of the SAMBA server but either doesn't get
find IP address or an invalid one, so that the NetBIOS name can not
be found. Either put the IP address of the SAMBA server into the Win2K
machine's HOSTS file, or correct the DNS.

Michael
 
Reply With Quote
 
Jeff Godfrey
Guest
Posts: n/a

 
      03-02-2004, 09:01 PM
Michael Buchenrieder <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> jeff-(E-Mail Removed) (Jeff Godfrey) writes:
>
> [...]
>
> >I can see the samba server in the network neighbor hood from the Win2K
> >machine, but once I try to double click on it to access the share I
> >get the following error: Network path not found

>
> [...]
>
> This is not a SAMBA but a DNS issue. Your Win2K machine tries
> to resolve the IP address of the SAMBA server but either doesn't get
> find IP address or an invalid one, so that the NetBIOS name can not
> be found. Either put the IP address of the SAMBA server into the Win2K
> machine's HOSTS file, or correct the DNS.
>
> Michael


I put the Samba server's IP in the Win2K HOST file and imported a
LMHOST list with the samba server listed in that, but still no luck.
How do I correct the DNS? All the computers are in a windows
workgroup environment. I have been looking at DNS tips, but I am not
finding what I need or I may not be understanding what I find? Do I
put the DNS IP in the Primary DNS suffix box on the Win2K?
I may just have to start all over. I feel like I am chasing my tail.

thanks
Jeff
 
Reply With Quote
 
Michael Buchenrieder
Guest
Posts: n/a

 
      03-03-2004, 06:15 AM
jeff-(E-Mail Removed) (Jeff Godfrey) writes:

[...]

>I put the Samba server's IP in the Win2K HOST file and imported a
>LMHOST list with the samba server listed in that, but still no luck.


OK, let's start with the simple things:

- Can you ping the SAMBA server?
- What is the OS level used in the smb.conf file?
- What are the IP addresses used (network settings)?
- Does the SAMBA server work as a WINS server?
- Does the SAMBA server listen to the correct
interface?
- Can you connect to SAMBA shares using the "net use ..." syntax?
And if not: Does "net use ..." work if you substitute the NetBIOS
name with the IP address of the SAMBA server in question?

Michael
 
Reply With Quote
 
Jeff Godfrey
Guest
Posts: n/a

 
      03-03-2004, 06:42 PM
Michael Buchenrieder <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> jeff-(E-Mail Removed) (Jeff Godfrey) writes:
>
> [...]
>
> >I put the Samba server's IP in the Win2K HOST file and imported a
> >LMHOST list with the samba server listed in that, but still no luck.

>
> OK, let's start with the simple things:
>
> - Can you ping the SAMBA server?
> - What is the OS level used in the smb.conf file?
> - What are the IP addresses used (network settings)?
> - Does the SAMBA server work as a WINS server?
> - Does the SAMBA server listen to the correct
> interface?
> - Can you connect to SAMBA shares using the "net use ..." syntax?
> And if not: Does "net use ..." work if you substitute the NetBIOS
> name with the IP address of the SAMBA server in question?
>
> Michael




Michael,
Thanks for your help.

-Yes, I can ping the Samba server
-I do not have a OS level in the smb.conf file. I will go back
through the mans
I have to read up on that.
-The samba server has a static IP and all the windows clients are
static IPs also. I believe I have the network settings correct(IP,
DNS server, gateway) because I can access the internet from the Linux
machine.
-I have not tried the samba as a WINS server. I can work on that to
see if that solves the problem.
-I am afraid I do not know what you mean by "listen to the correct
interface."
-No, I can not connect to the samba server using the IP or NetBIOS
with "net use...".

From the windows client I can see the samba client in the workgroup,
but when I try to access the shares I get errors like, "network path
not found" and "network name already exists"

Thank you for your time and help. I will keep plugging away on this.

Jeff
 
Reply With Quote
 
Michael Buchenrieder
Guest
Posts: n/a

 
      03-04-2004, 05:37 AM
jeff-(E-Mail Removed) (Jeff Godfrey) writes:


>Michael,
>Thanks for your help.


Pleasure. :-)

>-Yes, I can ping the Samba server


OK

>-I do not have a OS level in the smb.conf file. I will go back
>through the mans
>I have to read up on that.


It's an option to let the SAMBA server win the Windows Master
Browser Elections that occure periodically. If you don't set
this option to a high enough value in your smb.conf file,
you'll get never ending election processes, visible in your
smb logfile.

>-The samba server has a static IP and all the windows clients are
>static IPs also. I believe I have the network settings correct(IP,
>DNS server, gateway) because I can access the internet from the Linux
>machine.


OK. You could post the addresses an settings involved, to help people
help you out.

>-I have not tried the samba as a WINS server. I can work on that to
>see if that solves the problem.


You'll have to set

wins support = yes

in the smb.conf file, and create the file /etc/lmhosts (location may
vary depending from the compile-time options!) manually. The file
has a very simplistic format, just NetBIOS names and corresponding
IP addresses, one per line.

>-I am afraid I do not know what you mean by "listen to the correct
>interface."


There should be an option

interfaces = ..../....

containing ONLY the IP address of the internal interface to your LAN.
If you don't limit the interfaces SAMBA is listening to, your server
would be accessible by anyone from anywhere (unless you're filtering
out packets bound to port 135 - 139 with a firewall).

>-No, I can not connect to the samba server using the IP or NetBIOS
>with "net use...".


If connecting with the IP address fails, and even a "net view ..."
doesn't work, check whether or not you have a firewall in place
that is filtering the traffic on the NetBIOS ports. Common mistake
would be running ZoneAlarm or Norton Internet Security on the Win*
client.

Michael

 
Reply With Quote
 
Jeff Godfrey
Guest
Posts: n/a

 
      03-04-2004, 03:59 PM
Michael Buchenrieder <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> jeff-(E-Mail Removed) (Jeff Godfrey) writes:
>
>
> >Michael,
> >Thanks for your help.

>
> Pleasure. :-)
>
> >-Yes, I can ping the Samba server

>
> OK
>
> >-I do not have a OS level in the smb.conf file. I will go back
> >through the mans
> >I have to read up on that.

>
> It's an option to let the SAMBA server win the Windows Master
> Browser Elections that occure periodically. If you don't set
> this option to a high enough value in your smb.conf file,
> you'll get never ending election processes, visible in your
> smb logfile.
>
> >-The samba server has a static IP and all the windows clients are
> >static IPs also. I believe I have the network settings correct(IP,
> >DNS server, gateway) because I can access the internet from the Linux
> >machine.

>
> OK. You could post the addresses an settings involved, to help people
> help you out.
>
> >-I have not tried the samba as a WINS server. I can work on that to
> >see if that solves the problem.

>
> You'll have to set
>
> wins support = yes
>
> in the smb.conf file, and create the file /etc/lmhosts (location may
> vary depending from the compile-time options!) manually. The file
> has a very simplistic format, just NetBIOS names and corresponding
> IP addresses, one per line.
>
> >-I am afraid I do not know what you mean by "listen to the correct
> >interface."

>
> There should be an option
>
> interfaces = ..../....
>
> containing ONLY the IP address of the internal interface to your LAN.
> If you don't limit the interfaces SAMBA is listening to, your server
> would be accessible by anyone from anywhere (unless you're filtering
> out packets bound to port 135 - 139 with a firewall).
>
> >-No, I can not connect to the samba server using the IP or NetBIOS
> >with "net use...".

>
> If connecting with the IP address fails, and even a "net view ..."
> doesn't work, check whether or not you have a firewall in place
> that is filtering the traffic on the NetBIOS ports. Common mistake
> would be running ZoneAlarm or Norton Internet Security on the Win*
> client.
>
> Michael




Michael

Thank you! I got it to work.
I added wins support & interfaces to the smb.conf and edited the
lmhosts file. Then I was able to connect to the shared dicertory from
the windows machine.
Thank you very much for your help!

Jeff
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
d-link g630 wont connect under win2K Arthurb Wireless Internet 2 06-12-2005 11:34 PM
Win2k client in Samba network refuses to use DNS, only NBNS broadcast Rob Mitchell Linux Networking 0 03-10-2005 07:34 AM
Connect Win98 to Win2k Domain Curtis Windows Networking 1 09-13-2004 11:20 PM
Win98 cannot connect to Win2K server AD Mike Windows Networking 1 02-14-2004 10:41 PM
Win2K install SP4 = can't connect to MSN and slow connect to others =?Utf-8?B?TE1C?= Windows Networking 0 12-31-2003 06:01 PM



1 2 3 4 5 6 7 8 9 10 11