LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-18-2004, 09:35 PM   #1
Pengus
LQ Newbie
 
Registered: Oct 2004
Posts: 19

Rep: Reputation: 0
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.
 
Old 10-19-2004, 02:41 AM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
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.
 
Old 10-19-2004, 08:22 AM   #3
DertyolBA$HTARD
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86

Rep: Reputation: 15
The NETBIOS name won't be found by XP since the NETBUEI protocol is not installed by default.
 
Old 10-19-2004, 10:27 AM   #4
Pengus
LQ Newbie
 
Registered: Oct 2004
Posts: 19

Original Poster
Rep: Reputation: 0
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?
 
Old 10-19-2004, 02:42 PM   #5
DertyolBA$HTARD
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86

Rep: Reputation: 15
Do you have entries in the smbpasswd file for the XP users?
 
Old 10-19-2004, 03:15 PM   #6
Pengus
LQ Newbie
 
Registered: Oct 2004
Posts: 19

Original Poster
Rep: Reputation: 0
There's one, yes. I've also tried allowing public connections (but restricted from within my network, which only I use.
 
Old 10-19-2004, 03:26 PM   #7
DertyolBA$HTARD
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86

Rep: Reputation: 15
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?
 
Old 10-19-2004, 03:53 PM   #8
Pengus
LQ Newbie
 
Registered: Oct 2004
Posts: 19

Original Poster
Rep: Reputation: 0
NetBEUI is installed on my LAN. Still the same error.

Last edited by Pengus; 10-19-2004 at 05:05 PM.
 
Old 10-19-2004, 06:51 PM   #9
DertyolBA$HTARD
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86

Rep: Reputation: 15
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.
 
Old 10-19-2004, 07:14 PM   #10
Pengus
LQ Newbie
 
Registered: Oct 2004
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
Old 10-19-2004, 08:20 PM   #11
DertyolBA$HTARD
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86

Rep: Reputation: 15
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.
 
Old 10-19-2004, 09:25 PM   #12
Pengus
LQ Newbie
 
Registered: Oct 2004
Posts: 19

Original Poster
Rep: Reputation: 0
Yes, I was able to do this.
 
Old 10-20-2004, 05:27 AM   #13
DertyolBA$HTARD
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86

Rep: Reputation: 15
But you still can not access shares through the windows box, even with:
\\servername\share in the run box?
 
Old 10-20-2004, 06:04 AM   #14
Pengus
LQ Newbie
 
Registered: Oct 2004
Posts: 19

Original Poster
Rep: Reputation: 0
Right.
 
Old 10-20-2004, 02:40 PM   #15
DertyolBA$HTARD
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10
Posts: 86

Rep: Reputation: 15
What are the results from:

Code:
C:\net view \\servername
http://home.onemain.com/~george100/mauh.gif
 
  


Reply



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
Is it possible to log onto your home linux box from another machine running linux?! Gormless Linux - General 7 10-26-2004 10:27 PM
Connect two Linux box without samba melinda_sayang Linux - Newbie 6 08-02-2004 08:44 PM
linux box as samba client? luap Linux - Networking 3 03-12-2003 09:15 AM
Linux box - Windows box =Samba? hbidad Linux - Software 7 02-10-2003 10:00 PM
Can't see linux box running Samba from Windows machine RBLynch Linux - Newbie 2 03-21-2002 07:59 PM

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

All times are GMT -5. The time now is 04:40 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