Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Accessing NFS shares from Mac OSX
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hal9000
n00b
n00b


Joined: 18 May 2003
Posts: 21
Location: Berlin, Germany

PostPosted: Sun Jan 30, 2005 7:34 pm    Post subject: Accessing NFS shares from Mac OSX Reply with quote

I just set up a fresh Gentoo system after a harddrive crash. I had been using NFS to access files from my iBook on my Gentoo box. After freshly reinstalling Gentoo, I can't seem to access the NFS shares anymore.
Using the "Finder" method in OSX (<apple>-K in Finder, then nfs://server/path) I get
Code:
Could not connect to the server because the name or password is not correct.

If I try to mount in a console window this happens:
Code:
mount sobe:/home/hal test
mount_nfs: /Users/hal/test: Protocol not supported

Unfortunately I have no other Linux systems to test as clients, so I am not even sure if the problem is due to the server or client.
My /etc/exports on the server includes the following line for the directory in question:
Code:
/home/hal  <IP of my iBook> (rw,root_squash,insecure)

Any ideas?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31720
Location: 56N 3W

PostPosted: Sun Jan 30, 2005 7:52 pm    Post subject: Reply with quote

hal9000,

Use the gentoo box as both a client and a server and nfs mount the exported filesystem on the box doing the exporting. Its not a useful thing to do normally but it does work.

You may need to add to the exports file if it contains a single IP, rather than a subnet that includes both machines.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
hal9000
n00b
n00b


Joined: 18 May 2003
Posts: 21
Location: Berlin, Germany

PostPosted: Sun Jan 30, 2005 8:02 pm    Post subject: On the host machine no problem Reply with quote

thanks for the suggestion, I just changed the /etc/exports by replacing the IP of my iBook with 'localhost' for the directory. I was able to mount the directory without any problem:
Code:
mount localhost:/home/hal test

So it seems it is an issue with Mac OSX?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31720
Location: 56N 3W

PostPosted: Sun Jan 30, 2005 8:05 pm    Post subject: Reply with quote

hal9000,

Or something has changed that the Mac doesn't like.
Are you using a ssh tunnel ?
With a new install, the ssh fingerprint will change and any machine that has connected before will detect that.

============= edit =================
Your error message says
Code:
Protocol not supported
there are two different NFS protocols, ver 3 and Ver 4. Are you using the right one?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
hal9000
n00b
n00b


Joined: 18 May 2003
Posts: 21
Location: Berlin, Germany

PostPosted: Sun Jan 30, 2005 8:15 pm    Post subject: ssh, fingerprints, versions Reply with quote

Neddy,
I do have ssh up and working again with the new keys, but am not tunneling. I am not sure about the NFS protocol versions, I never worried about this before. Which version do I need? How do I know which version I am using?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31720
Location: 56N 3W

PostPosted: Sun Jan 30, 2005 8:24 pm    Post subject: Reply with quote

hal9000,

I was hoping you wern't going to ask that. Its kernel options.
I normally include both but I only share with other Gentoo boxes.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
hal9000
n00b
n00b


Joined: 18 May 2003
Posts: 21
Location: Berlin, Germany

PostPosted: Sun Jan 30, 2005 9:14 pm    Post subject: partly solved Reply with quote

well, I checked my kernel options and changed a few things. I had selected
Code:
File Systems -> Network File Systems -> NFS server support
but not
Code:
Provide NFSv3 server support

Added that, recompiled and rebooted.
I can now mount the share :)
But when I try to open it, I get
Code:
The folder XX could not be opened because you do not have sufficient access privileges.

So I guess I will have to start playing with file privileges, squashing, etc. And I though this was going to be easy ;)
Back to top
View user's profile Send private message
eniac
Apprentice
Apprentice


Joined: 11 Aug 2003
Posts: 233
Location: Belgium, Brussels

PostPosted: Sun Aug 07, 2005 2:37 pm    Post subject: Reply with quote

I had about the same problem but I get:

Code:
 Operation not permitted


And it's not a root problem ..
_________________
Turns out the pony only had one trick.
Back to top
View user's profile Send private message
mphilips
n00b
n00b


Joined: 09 Sep 2003
Posts: 49

PostPosted: Sun Nov 13, 2005 12:55 am    Post subject: Reply with quote

Having the same problem - anyone ever figure out the solution?

On MacOSX 10.4.3 Tiger I get:
Code:
The folder "mphilips" could not be opened because you do not have sufficient access privileges.
Back to top
View user's profile Send private message
patrick295767
n00b
n00b


Joined: 27 Mar 2006
Posts: 2

PostPosted: Mon Mar 27, 2006 12:15 pm    Post subject: Reply with quote

mphilips wrote:
Having the same problem - anyone ever figure out the solution?

On MacOSX 10.4.3 Tiger I get:
Code:
The folder "mphilips" could not be opened because you do not have sufficient access privileges.


Hi Guys,

I am having also similar problems with mounting NFS with my MAC, with the LINUX SERVER.

(It looks like that there is a non trivial issue to make it work) (my post under mac user forum http://macusersforum.com/index.php?showtopic=11037 Same subject in parallel)

Is there someone who foudn the solution how to make it ?

Thank you very much !!
Back to top
View user's profile Send private message
divinegeek
n00b
n00b


Joined: 08 Apr 2006
Posts: 1

PostPosted: Sat Apr 08, 2006 10:45 pm    Post subject: Reply with quote

It's been a while since I've toyed with NFS and OS X, but if I recall, it was helped to have the same username on both the os x box and the gentoo box and also to export the share with the insecure_port flag (or something to that extent).


-KM
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum