LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-05-2005, 05:35 PM   #1
linux_blnk182
LQ Newbie
 
Registered: Jan 2005
Location: va
Distribution: suse 9.2
Posts: 10

Rep: Reputation: 0
Post File sharing on a network NFS


At our school we have 4 machines and they're all together on a simple network...but not connected to the outside world of internet (yet.....)

all of the ips on the four machines are:
10.1.3.*

computer 1 name--->Hobbes
computer 2 name--->JJ&P


both computers can ping each other.....but we want JJ&P to 'cd' into a directory created in "Hobbes" on the JJ&P computer

i guess it would be like:

cd /Hobbes

(now JJ&P can see certainly files on a dir that Hobbes made, via the private network)

so the question is this linux folks:

HOW DO YOU DO IT???

in plain terms: how do you make an NFS on a network so all the computers on that network can see files on OTHER computers....no need to ssh, telnet, no passwords, plain ole file sharing....

the closest we got was:
mount -t nfs /Hobbes 10.1.3.0
^^not right at all

help....

PS we all have Suse 9.1

Last edited by linux_blnk182; 01-05-2005 at 05:41 PM.
 
Old 01-05-2005, 06:26 PM   #2
kevsco77
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Rep: Reputation: 0
This should work:
1: as root on the box that will be sharing the files
chkconfig --level 35 nfs on

2: if not already exists create a directory
mkdir /name/of/directory

3: create the export entry (you might want to replace * with the IP of the hosts on you network)
echo "/name/do/directory *(sync,ro)" > /etc/exportfs

4: start nfs
service nfs start

5: on the you are connecting from
showmount -e $IP_of_server_that's_sharing_the_file

6: mount files locally
mount -t nfs $IP_of_server_that's_sharing_the_file:/name/of/directory /where/you/want/to/mount

That should do the trick....

Kev
 
Old 01-05-2005, 06:29 PM   #3
linux_blnk182
LQ Newbie
 
Registered: Jan 2005
Location: va
Distribution: suse 9.2
Posts: 10

Original Poster
Rep: Reputation: 0
thanks!!

I was able to find a tutorial that also looks helpful.....you might like it

http://nfs.sourceforge.net/nfs-howto/
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu NFS file sharing not working snobird Ubuntu 1 06-26-2005 06:31 PM
how to get primary logon network, Access control,File sharing & printer sharing info dileepkk Linux - Networking 2 07-06-2004 06:54 AM
Problem with sharing CD-ROM over network, NFS PR0T0N Linux - Networking 3 12-05-2003 10:18 AM
File Sharing: NFS or SMB? scorpatron Linux - Networking 6 11-10-2003 12:44 AM
File Sharing with NFS graystarr Linux - Networking 1 01-14-2002 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:44 AM.

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
Open Source Consulting | Domain Registration