Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-13-2004, 08:28 PM   #1
Registered: Dec 2003
Location: land of oz
Distribution: centos
Posts: 104

Rep: Reputation: 15
nfs access denied

i have two machines at home, detroit and miami. I'm playing around with nfs mounting, but I can't seem to get it to work. I'm at work right now, so I can't post my exact configs or errors, but here's the setup:

I'm trying to share a partition on detroit with miami (currently a mandrake box, but that will change). I set up miami's fstab to mount like so:

detroit:/home/mofo/shared /mnt/remote/detroit nfs ro,auto,user 0 0

then I set up the exports file on detroit:

/home/mofo/shared *,rw)

... and then ran exportfs.

that didn't work, so I modified my hosts.allow to let anyone on my network in, thinking that maybe tcpwrappers were to blame, but that didn't work.

then I changed the exports file 50 million times with different options, like all_squash, etc.

yes, nfs is running on both machines, there's only one user on either machine, so the uid should be the same.

I also tried sharing in the other direction, but no luck there, either.

What am I missing?
Old 07-14-2004, 12:38 AM   #2
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

Rep: Reputation: 32
you're supposed to run exportfs -a

check what is offered for sharing from the server by running on the client:
showmount -e <server>

<server> is the host name or the ip address

on the issue of the export file ... use just rw for starters

lastly aftergetting the showmount stuff, you need to mount that to a local mountpoint ...

OH yes, one last thing, you need to run this ... not as root. You need to run this as yourself, running it as root means normal users can't access it ...

I hope this helps, i've only done this a few times.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission denied when access linux from windows through NFS implementation red_colt Linux - Networking 2 08-12-2005 02:54 AM
NFS write access denied on one of two filesystems TomF Linux - Security 2 02-23-2005 08:48 PM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 02:30 AM
Can't access mounted NFS directory: "permission denied" SparceMatrix Linux - General 6 03-08-2003 01:36 PM
NFS - access denied filsed Linux - Networking 2 03-21-2002 09:56 PM > Forums > Linux Forums > Linux - Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration