LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-12-2001, 05:39 AM   #1
Paul_assheton
Member
 
Registered: Nov 2000
Location: Ware (Nr London, England
Posts: 114

Rep: Reputation: 15
Question Samba netbios name resolution problems


Hi there,

I have just set up samba on a RH7.1 box and I am having trouble with the Windows NT4 clients resolving the hosts name. The name of the computer and it's alias appear in the network neighborhood but when they are clicked on I get the error "The network path was not found". I know that samba is working because if you specify the IP address in the run box you get the shared drive no problem. EG

\\192.168.0.10\share This works

\\linuxserver\share This does not work

So I can see the shares and map them to drive letters but I just cannot access them through Network Neighborhood or by using the computer name!

What have I done wrong?

Thanks


Here is a copy of the smb.conf file:-


# Samba config file created using SWAT
# Date: 2001/11/12 10:56:41

# Global parameters
[global]
workgroup = ZANDSLONDON
netbios name = DEVSERV1
netbios aliases = atlasonline
server string = Development Server
security = SHARE
encrypt passwords = Yes
hosts equiv = /etc/hosts.equiv
ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
log file = /var/log/samba/%m.log
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = No

[data1]
comment = Data1
path = /data1
writeable = Yes
guest ok = Yes

[data2]
comment = Data2
path = /data2
writeable = Yes
guest ok = Yes

[dev_areas]
comment = Recall Development System
path = /data2/dev_areas
writeable = Yes
guest ok = Yes
 
Old 11-12-2001, 06:16 PM   #2
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
couple of quickies...

1) can you ping it by name?
2) do you have a WINS server?
3) do you have the following ports open on your Linux box?
137/tcp
137/udp
138/tcp
138/udp
139/tcp

lemme know
 
Old 11-12-2001, 09:38 PM   #3
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Try adding the following to each of your share descriptions in your SAMBA config file:

browsable = yes
 
Old 11-13-2001, 02:44 AM   #4
Paul_assheton
Member
 
Registered: Nov 2000
Location: Ware (Nr London, England
Posts: 114

Original Poster
Rep: Reputation: 15
Thanks for the suggestions

No I cannot ping by name,
We have no wins server,
Yes the ports listed are open,

I also added the browsable flag and also tried a reboot but there is no change.

Any other suggestions?

Thanks

Paul
 
Old 11-13-2001, 06:48 AM   #5
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
Do you get an access denied message (or something similar)?
 
Old 11-13-2001, 06:55 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i always get that stupid error, i just gave up personally, but that's not really a solution ehh? What i do, only on a smll scale mind you, is to use a windows batch file to map the network drive, first using a 'net view' then a 'net use' to make x: or something. works flawlessly, but it's certainly ungraceful...
 
Old 11-13-2001, 07:37 AM   #7
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Create an LMHOSTS or HOSTS file on the WNT clients with a listing for the Linux box.
(do both if you want)

Then add the WNT client names and addy's to the Linux box's /etc/hosts file.
 
Old 11-13-2001, 11:12 AM   #8
Sathe
Member
 
Registered: Sep 2001
Location: Bryan, Ohio USA (Home of the Etch-A Sketch)
Distribution: RedHat 7.1, 7.2, and 7.3
Posts: 76

Rep: Reputation: 15
go kevin

thats exactly what i was going to suggest, create those files.
i am able to do what you want to do, but i don't think i am using both of those files, i know they are there though.
 
Old 11-14-2001, 03:52 AM   #9
Paul_assheton
Member
 
Registered: Nov 2000
Location: Ware (Nr London, England
Posts: 114

Original Poster
Rep: Reputation: 15
Hi,

I had already added the Linux computer name to the windows computers host file in /winnt/system32/drivers/etc. This allowed me to ping the linux box using the name.

I searched for LMHOSTS and found one in the same directory as the hosts file called LMHOSTS.SAM. I edited this one but there was no change. I then renamed it to LMHOSTS and it all started working!

I am now going to update this file on all the winnt boxes.

Thanks for all the help.

Paul
 
Old 11-14-2001, 02:46 PM   #10
sancho5
Member
 
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Rep: Reputation: 30
right-o. the file must be renamed, since the .sam extension denotes it is only a sample file. I only mention this cuz it bit me in the butt earlier.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Netbios help Samba ilnli Linux - Networking 7 05-03-2010 12:08 AM
Linux and NetBios name resolution essdeeay Linux - Networking 6 11-15-2005 11:10 AM
NetBIOS name resolution Harpune Linux - Networking 5 02-14-2005 01:40 PM
firewall and netbios name resolution Harpune Linux - Security 2 02-09-2005 01:13 PM
netbios without samba? hotrodowner Linux - Networking 11 03-21-2003 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration