LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-28-2003, 07:11 AM   #16
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975

arse, i didn't even read the question right... NFS all the way
 
Old 04-28-2003, 11:03 AM   #17
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
I, personally, like NFS for a local net, but don't think it's secure enough for going across firewalls, which is why I like the lufs solution with ssh.

[Flame worthy material below]
I would recommend against using samba until you need it. It's based on the ill-concieved (and even more poorly implemented) Sever Message Block "standard" that is continuously in flux and is patched together with chickenwire and bubble gum. That's not to say the SAMBA folks did a bad job, they performed a miracle. But when the core is rotten, any number of miracles isn't going to be enough to fix the problem.
I know the above does nothing to answer the question (in a practicle sense) of why not to use SAMBA.
An example of the problems with SMB is that (last time I checked) you couldn't easily cross netmasks with it (have a system with IP address 192.168.0.5 connect to a server with 10.0.0.1). This may have changed, but it wasn't in the original SMB specification, which means if it has changed, it's a hack (not in a good sense).
 
Old 04-28-2003, 03:58 PM   #18
d_lake
Member
 
Registered: Feb 2003
Location: Alabama
Distribution: Slackware
Posts: 43

Original Poster
Rep: Reputation: 15
ok i will try that. I thought that samba was for Linux to windows sharing and not linux to linux, but everybody kept telling me to use samba.

thanks
 
Old 04-29-2003, 12:03 PM   #19
dav1x
Member
 
Registered: Sep 2002
Posts: 50

Rep: Reputation: 15
NFS sharing

Simply post the directory with your favorite text editor to
/etc/exports on the machine you wish to share with.
(You can give advanced options ro, rw etc)

Restart your nfs service..
Not sure what distro you are on but if rh based

/sbin/service nfs restart

or /etc/rc* restart (something like that)

Then on your client..

mount -t nfs ipaddressofserver:/share/name /mount/location

Understand?

dav1x
 
Old 04-29-2003, 12:14 PM   #20
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Re: NFS sharing

Quote:
Originally posted by dav1x
Simply post the directory with your favorite text editor to
/etc/exports on the machine you wish to share with.
(You can give advanced options ro, rw etc)

Restart your nfs service..
Not sure what distro you are on but if rh based

/sbin/service nfs restart

or /etc/rc* restart (something like that)
He's on Slackware and I could have sworn I already went over setting up NFS on Slackware in my above post..
 
Old 04-30-2003, 04:45 AM   #21
linuxmidnewbie
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Rep: Reputation: 0
Im Running on Mandrake 9.0.

I have set up nfs on my two linux machines, one with all the shares, which has a share thats not in my home directory in /etc/exports. (its a windows drive in /mnt)

On the second machine is /etc/fstab i have both shares set up but only the one in my home directory will mount.

Anybody know why, or more to the point how i can get around this. Please help!!!!!
 
Old 04-30-2003, 08:41 AM   #22
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally posted by linuxmidnewbie
Im Running on Mandrake 9.0.

I have set up nfs on my two linux machines, one with all the shares, which has a share thats not in my home directory in /etc/exports. (its a windows drive in /mnt)

On the second machine is /etc/fstab i have both shares set up but only the one in my home directory will mount.

Anybody know why, or more to the point how i can get around this. Please help!!!!!
Well first of all, you shouldn't hijack another members existing thread. Something like this you should have started your own thread. But before you do, don't, cause that would be double posting and against the rules.

Second, any particular error messages when its trying to mount the NFS share for your /mnt/windows share? Is this windows share even mounted on the server? What's the permissions setup on it? Can you provide your exports file and fstab along with any other information that might help us help you..
 
Old 04-30-2003, 09:12 AM   #23
shadowbird
LQ Newbie
 
Registered: Apr 2003
Distribution: RedHat
Posts: 27

Rep: Reputation: 15
tgschaef,

Here are some thoughts:

In general, I believe that you should NOT mix distributed filing systems on the same directory. Locking and such becomes a possible problem under those circumstances. Thus, in a heterogeneous system (mixed linux and windows, for example), pick ONE networking system for a directory (you can pick a different networking system for a different directory).

So, if Directory "A" is to be accessed by both Linux and Windows boxes, use Samba. At the same time, if Directory "B" is accessed only by Unix/Linux boxes, I would use NFS for that directory.

-- Kevin --
 
Old 04-30-2003, 09:30 AM   #24
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,225

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
NFS for sure, just edit /etc/exports
put in a line like:
/direcorytoexport ip.of.machine.priveleged.to.access/your.subnet.mask(your options)

make sure the following services are started
Portmap
nfs
nfslock
then you should be able to, at he other machine
type mount -t nfs server_ip_addres:/shareddirectory /localmountpoint
hope this helps, cheers
 
Old 04-30-2003, 09:39 AM   #25
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,225

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Quote:
Originally posted by moses
I, personally, like NFS for a local net, but don't think it's secure enough for going across firewalls, which is why I like the lufs solution with ssh.

[Flame worthy material below]
I would recommend against using samba until you need it. It's based on the ill-concieved (and even more poorly implemented) Sever Message Block "standard" that is continuously in flux and is patched together with chickenwire and bubble gum. That's not to say the SAMBA folks did a bad job, they performed a miracle. But when the core is rotten, any number of miracles isn't going to be enough to fix the problem.
I know the above does nothing to answer the question (in a practicle sense) of why not to use SAMBA.
An example of the problems with SMB is that (last time I checked) you couldn't easily cross netmasks with it (have a system with IP address 192.168.0.5 connect to a server with 10.0.0.1). This may have changed, but it wasn't in the original SMB specification, which means if it has changed, it's a hack (not in a good sense).
and that core would be windows file sharing?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File Sharing Linux and OS X hitsuzen Linux - Newbie 1 09-26-2004 11:46 AM
File sharing in Linux... Fernando534 Linux - Networking 2 05-12-2004 02:22 PM
linux file sharing paulr1984 Linux - Networking 4 05-11-2004 09:33 AM
File sharing in Linux... Norrin Linux - Newbie 12 11-20-2003 01:59 AM
File Sharing Linux and XP rsb99 Linux - Networking 7 02-05-2003 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration