LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Quick Question on sharing files (https://www.linuxquestions.org/questions/linux-networking-3/quick-question-on-sharing-files-293740/)

petergriffin 02-23-2005 02:58 AM

Quick Question on sharing files
 
If you want to share files on 2 Linux boxes, say both Mandrake with Samba installed, should Smb4k find the other computer when you hit the 're-scan' tab within that program? If they're are not seeing each other at this point what information do I have to tell each one that there is another one on the Network?

Thanks in advance.

scott_R 02-23-2005 03:28 AM

Assuming they're both set up with defaults, the problem might simply be that they're both trying to act as servers (windows uses a numbering scheme, with 20 as the the default for the master server, and 'os level 20' is also what samba tends to use as well, which means it's likely your two linux boxes are simply fighting each other, and if you have another MS windows server on the network, it's probably joining in on the fray as well. Your best bet is to go into your /etc/samba/smb.conf (or similar) file, and adjust one of the boxes to a lower OS level, which is easy if you read through the script.

Personally, though, if you're just running two Linux boxes, I'd opt for NFS, which is a whole lot easier to configure, more mature, more efficient, and less well understood by the script kiddies. It may take a couple extra minutes to read about and set up, but once you see it in action, you'll hate setting up SMB connections. :)

Mel_P 02-23-2005 04:07 AM

Hello,

I have a similar problem. I got Mdk 9.2 to network but after installing 10.1 I cannot share. My router sees the linux pc (by netbios name) but I cannnot see the windows PCs.

When you say "set to a lower OS level" - what number please.

Aslo is there a simple guide to NFS please?

Ta, Mel

Mel_P 02-23-2005 05:43 AM

Hey ! This may help you petergriffin!

Found this in smb.conf

# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
# local master = no

so I set local master=0 by removing the "#" and then Linux found the other PCs (well 1 so far ! ) and the network printer - GREAT

PS - I also changed the value in "smb-winbind.conf" - Do I need to please?

Mel

Mel_P 02-23-2005 06:05 AM

I am not trying to take this over --- but I can now see my Windows shares BUT on my Windows PC I can see the computer name but when I double click on it I get a message box

//MEL2 is not accessible - Network path was not found.

Any thoughts on this please?

Thanks

Mel_p

petergriffin 02-23-2005 06:15 AM

Hi Mel_P,


I have checked the smb.config and mine is already set as 'local master = no'. I am now looking into Scott_R's suggestion of 'nfs' and found a decent site explaining it. This is the link if you want to take a look http://nfs.sourceforge.net/nfs-howto/intro.html#WHAT

There's a lot of reading to do on that site so it might take me a while, but thanks for the info on samba.


All times are GMT -5. The time now is 11:23 PM.