LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-16-2005, 02:23 AM   #1
mapster
LQ Newbie
 
Registered: Mar 2005
Location: Norway
Distribution: Mandriva 2007
Posts: 23

Rep: Reputation: 15
File sharing over Samba


I have set up a file sharing network between two xp computers and my Mandrake 10.1 Linux.
They have access to my shared files, but I can't access theirs.
I only know two ways:
- I typed in the ip of one of the xp computers in konqueror and other explorers. But that didn't work.
- I used the Samba Share Browser, Smb4K. It shows their shared files but when I try to access them I get an error: "libsmb based programs must *NOT* be setuid root.
24197: Connection to MORTEN failed.
SMB connection failed"

Anybody who knows other ways of access or some way to fix the error?
Please help me...
 
Old 03-16-2005, 09:07 AM   #2
azucaro
Member
 
Registered: Jan 2005
Location: Washington, D.C.
Distribution: Arch (Custom), CentOS
Posts: 239

Rep: Reputation: 30
I connected to a WinXP share as root by using
Code:
mount -t smbfs //COMPNAME/SHARENAME /where/to/put/it
That got me to a prompt where I would enter a valid username and password to the Windows machine.
Don't know if that helps or not...
 
Old 03-16-2005, 11:05 AM   #3
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Re: File sharing over Samba

Quote:
Originally posted by mapster
I have set up a file sharing network between two xp computers and my Mandrake 10.1 Linux.
They have access to my shared files, but I can't access theirs.
I only know two ways:
- I typed in the ip of one of the xp computers in konqueror and other explorers. But that didn't work.
- I used the Samba Share Browser, Smb4K. It shows their shared files but when I try to access them I get an error: "libsmb based programs must *NOT* be setuid root.
24197: Connection to MORTEN failed.
SMB connection failed"

Anybody who knows other ways of access or some way to fix the error?
Please help me...
You don't have any form of name resolution on your network, for your local machines.

You'll need to fix this. This (unfortunately) is a common newbie mistake.

Effectively there is nothing on your network which tells the machines how to resolve hostnames to IP address.

Two types of resolution are required...

a) Standard DNS type resolution...

You can take care of this either by setting up a local DNS server (more complicated) or by creating a HOSTS file with the proper entries on each machine (much easier).

Linux will require an /etc/hosts file. It will already exist but you must add the IP addresses of your XP machines.

XP will require an C:\Windows\System32\Drivers\etc\hosts file (hint copy hosts.sam to hosts and edit it...) for each computer.

In both cases if you have networked printers or other devices you should also add their IP's and names...

b) Netbios/NMB hostname resolution.

Samba starts off with Netbios hostname resolution. For this to work one machine must be set up as a "master browser", usually your Linux box if it tends to be on all the time...

The other XP computers should point their WINS entry to the Linux box under TCP/IP properties.... and ideally their browser mastering should be turned OFF, -OR- you'll need to make sure that Samba's OS level is HIGHER than XP... e.g. 36 or above..

This lets your XP machines ask the Linux box for Netbios name resolution.

Read up on this and come back when you run into anything you can't figure out.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need some help on Samba file sharing rodneybeighle Linux - Networking 1 09-08-2005 08:35 AM
File sharing without Samba? valnar Linux - Networking 3 05-26-2005 02:08 PM
File sharing using Samba adammthompson Linux - Networking 4 12-02-2004 08:01 PM
file sharing by using samba caesarkim Linux - Networking 4 07-22-2004 09:49 AM
Samba File Sharing tstephens Linux - Software 1 10-02-2003 10:23 AM


All times are GMT -5. The time now is 05:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration