Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-12-2001, 05:39 AM
|
#1
|
Member
Registered: Nov 2000
Location: Ware (Nr London, England
Posts: 114
Rep:
|
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
|
|
|
11-12-2001, 06:16 PM
|
#2
|
Member
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53
Rep:
|
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
|
|
|
11-12-2001, 09:38 PM
|
#3
|
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:
|
Try adding the following to each of your share descriptions in your SAMBA config file:
browsable = yes
|
|
|
11-13-2001, 02:44 AM
|
#4
|
Member
Registered: Nov 2000
Location: Ware (Nr London, England
Posts: 114
Original Poster
Rep:
|
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
|
|
|
11-13-2001, 06:48 AM
|
#5
|
Member
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53
Rep:
|
Do you get an access denied message (or something similar)?
|
|
|
11-13-2001, 06:55 AM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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...
|
|
|
11-13-2001, 07:37 AM
|
#7
|
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:
|
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.
|
|
|
11-13-2001, 11:12 AM
|
#8
|
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:
|
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.
|
|
|
11-14-2001, 03:52 AM
|
#9
|
Member
Registered: Nov 2000
Location: Ware (Nr London, England
Posts: 114
Original Poster
Rep:
|
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
|
|
|
11-14-2001, 02:46 PM
|
#10
|
Member
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327
Rep:
|
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. 
|
|
|
All times are GMT -5. The time now is 09:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|