LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (http://www.linuxquestions.org/questions/mandriva-30/)
-   -   File sharing over Samba (http://www.linuxquestions.org/questions/mandriva-30/file-sharing-over-samba-302173/)

mapster 03-16-2005 02:23 AM

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...

azucaro 03-16-2005 09:07 AM

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...

opjose 03-16-2005 11:05 AM

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.


All times are GMT -5. The time now is 07:30 AM.