Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Problem with NFS
PostPosted: Sat Mar 06, 2010 8:49 pm 
Offline
Junior Member

Joined: Sun Mar 01, 2009 10:48 am
Posts: 20
I've tried setting an nfs server up on my Linode. For some reason I keep getting the following error from my pc.

Code:
mount_nfs: can't access /data: Permission denied


I've looked at the message log on my server and I see the following

Code:
mountd[5209]: refused mount request from ***** for /data (/data): illegal port 50282


My exports file looks like this

Code:
/home  *(rw,sync)
/data  *(rw,sync)


I've tried connecting from a Redhat VM and from my mac. When I was on my Redhat VM I was logged in as root, and on the mac I'm logged in as myself.

Where am I going wrong?


Top
   
 Post subject:
PostPosted: Sun Mar 07, 2010 9:35 am 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
Historically, NFS requests have been required to come from a port below 1024 (a "secure" port... ha!).

Mac's (by default) dont' do this. You could add "-o resvport" to the mount command or, probably better, tell the Linux machine to not require this option ("insecure" in the exports file).

eg
/home *(rw,sync,insecure)


Really, though, do you want to export "*" - to the whole world?!

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Sun Mar 07, 2010 3:39 pm 
Offline
Junior Member

Joined: Sun Mar 01, 2009 10:48 am
Posts: 20
Thanks for your help. I will try this. I'm still not sure why my request is coming in from a higher port? Not quite sure how it is worked out? Where is it set on my mac?

As for the *, I was under the impression that you put an ip address here. The thing is I've got a dynamic ip at home, so I'm not sure what I would put there? Because if I put what it is now, then tomorrow I reset my router, well I'm going to get a different ip.

Edit: Just tried again and I still get permission denied but I don't get the illegal port error

Mar 7 19:45:10 testbox mountd[10542]: authenticated mount request from **** for /data (/data)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group