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.
|
 |
|
10-18-2004, 09:35 PM
|
#1
|
LQ Newbie
Registered: Oct 2004
Posts: 19
Rep:
|
Problems resolving linux box running Samba from XP
I'm pretty new at all this, but I've been plugging at trying to get Samba setup so I can get to shares on my linux box (running Fedora Core 2). I just reformatted my windows machine and used the linux pc for backup. I had no problems mounting a windows share (although I used the IP as it could not resolve the NetBIOS name) to initially back up the files, but I'm having problems bringing them back to the windows PC.
Here's my setup.. I've got a DSL connection plugged into a router to which both PCs are connected. Samba is running on the linux pc with two shared folders. In XP's network browser, I can see 'Samba Server (Pengus)', as Pengus is the name of the linux machine. When I try to access it, I get the following error:
Quote:
\\Pengus is not accessible. You might not have permission to use this network resource. Contact the administrator to find out if you have access permissions.
The network path was not found.
|
Any suggestions? What settings in smb.conf might be affecting this. I can say that I'm using (almost) the default smb.conf. I modified the workgroup entry (naturally) and I set it to run a WINS server as per a guide's advice (this was what finally allowed me to see the linux machine in XP's network browser at all). DNS proxy was turned off by default.
That about sums it up. The smb.conf is utterly unmodified save for those few things, and since I'm not too familiar with all of this, I intend to leave it that way without furthur advice or until I figure out what I'm doing.
Thank you very much for the help. I can post smb.conf if need be but I figured this is probably an easily fixable problem that is not yet known to me.
|
|
|
10-19-2004, 02:41 AM
|
#2
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
windows XP -- edit %windows%/system32/drivers/etc/hosts
-- put in an entry for pengus
-- i assume that running the following two lines from XP 'cmd' -command prompt- return differently-
Code:
ping pengus
ping <pengus' ip>
--i derive this solution based upon the 'network path not found' error in relation to the name 'pengus' = if you use the IP it should be found, else you have anoher problem...
= if you can ping the ip (which i assume you can), but not the name (which i assume you cannot), then you have a dns issue, and you can work around it by putting in an entry in your hosts file...
Last edited by secesh; 10-19-2004 at 02:43 AM.
|
|
|
10-19-2004, 08:22 AM
|
#3
|
Member
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86
Rep:
|
The NETBIOS name won't be found by XP since the NETBUEI protocol is not installed by default.
|
|
|
10-19-2004, 10:27 AM
|
#4
|
LQ Newbie
Registered: Oct 2004
Posts: 19
Original Poster
Rep:
|
You (first reply) were right about being able to ping the ip but not 'pengus'. I can now ping both, but I'm still getting the same error.
Any other suggestions?
|
|
|
10-19-2004, 02:42 PM
|
#5
|
Member
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86
Rep:
|
Do you have entries in the smbpasswd file for the XP users?
|
|
|
10-19-2004, 03:15 PM
|
#6
|
LQ Newbie
Registered: Oct 2004
Posts: 19
Original Poster
Rep:
|
There's one, yes. I've also tried allowing public connections (but restricted from within my network, which only I use.
|
|
|
10-19-2004, 03:26 PM
|
#7
|
Member
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86
Rep:
|
So you have an account on the Linux box that matches the Xp account, and the appropriate smbpasswd -a <username> command was ran, AND NETBUEI is installed on the XP machine?
|
|
|
10-19-2004, 03:53 PM
|
#8
|
LQ Newbie
Registered: Oct 2004
Posts: 19
Original Poster
Rep:
|
NetBEUI is installed on my LAN. Still the same error.
Last edited by Pengus; 10-19-2004 at 05:05 PM.
|
|
|
10-19-2004, 06:51 PM
|
#9
|
Member
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86
Rep:
|
Please paste your smb.conf file here.
[global]
workgroup = HOME
server string = Samba Server
encrypt passwords = yes
[Share]
path = /samba_share
writeable = yes
drwxrwxr-x 4 george users 4096 Oct 19 18:03 samba_share/
This is a QAD smb.conf file that works great on my XP, 2K, Slackware network.
|
|
|
10-19-2004, 07:14 PM
|
#10
|
LQ Newbie
Registered: Oct 2004
Posts: 19
Original Poster
Rep:
|
Code:
[global]
workgroup = workgroup
server string = Samba Server
hosts allow = 192.168.1. 192.168.2. 127.
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins support = yes
[temp]
path = /home/sam/temp
browseable = yes
writeable = yes
guest ok = yes
[media]
path = /home/sam/media
browseable = yes
writeable = yes
guest ok = yes
I've tried variations of the last share definitions/rules, from nothing but 'path=' to 'path=' with browse and write options turned on.
|
|
|
10-19-2004, 08:20 PM
|
#11
|
Member
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86
Rep:
|
Can you mount the shares on the linux box using the samba(XP) username--pass?
mount -t smbfs \\sambaserver\sambashare /mount/point
I think that works
If not man mount will resolve that issue.
you can also use smbclient, and nmblookup for testing samba
Last edited by DertyolBA$HTARD; 10-20-2004 at 05:24 AM.
|
|
|
10-19-2004, 09:25 PM
|
#12
|
LQ Newbie
Registered: Oct 2004
Posts: 19
Original Poster
Rep:
|
Yes, I was able to do this.
|
|
|
10-20-2004, 05:27 AM
|
#13
|
Member
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86
Rep:
|
But you still can not access shares through the windows box, even with:
\\servername\share in the run box?
|
|
|
10-20-2004, 06:04 AM
|
#14
|
LQ Newbie
Registered: Oct 2004
Posts: 19
Original Poster
Rep:
|
Right.
|
|
|
All times are GMT -5. The time now is 12:30 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
|
|