LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-16-2004, 09:03 PM   #1
explorer
Member
 
Registered: Feb 2003
Posts: 229

Rep: Reputation: 34
Question Making Fedora box an nfs server


I ask this in a little different question before, but has anybody had any experience setting up nfs shares in Fedora so they can be mounted by other linux boxes ? Mounting other shares from Fedora isn't a problem (client), but making my own directories available to other linux systems (server) is what I'd like to know how to get running.... Anybody do this already with Fedora ?
 
Old 04-17-2004, 01:25 PM   #2
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
This should be the same across all Linux distros.

Edit the /etc/exports file, and add the directories you want to share like this

/home/user_name servername(rw,no_root_squash)
/home/user2_name 10.201.36.0/24(rw,no_root_squash)
/home/user3_name *(ro,root_squash)

The first argument before the (), is for the hosts you want to be able to access the share. You can specify hostnames, IP addresses, subnets, or all with *.

rw, means read-write, ro means read-only

no_root_squash means that root users can have root access to all files on the share. The default is root_squash, which means that root users can only access files that are world readable.

After adding all the shared directories you want, you need to re-start (or start) nfsd. There should be a script somewhere in /etc/rc.d/init.d that will start nfs
 
Old 04-17-2004, 02:27 PM   #3
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
Thanks Shubb - I have made the entries in the exports file and done the restart with exportfs -ra, even rebooted, yet when I do a rpcinfo -p, I don't see nfs in the list, or does it need to be there in order to work ? Trying to mount the shared directory from another linux box does not work either. Have you actually created exports and been able to mount them from another machine ?
 
Old 04-18-2004, 02:53 AM   #4
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
Yes, I have set this up a few times, and I work with NFS mounts every day. The snippet that I posted here is a sample from a server that I have set up. I normally use Slackware, but I also tried it on a RedHat 9, and it works the same way.

Do you see the nfs processes running when you do a "ps -aux |grep nfs"?

Do you have iptables or another firewall set up on this machine? If so, are you sure that you opened all the ports?

When you try to mount from another machine, what errors do you get?
 
Old 04-19-2004, 08:40 PM   #5
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
Found it - /etc/init.d/nfs start......

Thanks Shubb !
 
  


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
making a network installation server for Fedora Core 1 scottie4442 Fedora 5 10-15-2006 04:59 PM
Setting up the NFS server on Solaris Box suresheva31 Linux - Networking 1 04-01-2005 12:51 PM
NFS crashing Fedora Core 2 server reelwylde Linux - Networking 3 12-03-2004 02:04 PM
making an nfs server with passwords hamish Linux - Networking 4 10-30-2003 04:38 PM
Mount server directory on local box using NFS esteeven Linux - Security 1 09-05-2003 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:05 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
Open Source Consulting | Domain Registration