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...
I connected to a WinXP share as root by using
Don't know if that helps or not...
Re: File sharing over Samba
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 11:59 AM.|