Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Alternative Operating Systems > unable to modify nfs mount on Mac

unable to modify nfs mount on Mac
Thread Tools
akashmahakode
Fresh-Faced Recruit
Join Date: Jan 2011
Status: Offline
Reply With Quote
Jan 4, 2011, 01:28 AM
 
Hi All,

I am using Mac Osx 10.6.3 and installed vmplayer 2.4 on it. I loaded Free bsd in vm player. So my guest operating system is FreeBSD and host operating system in Mac.

Consider, Mac IP - a.b.c.d (users available are ramesh)
& FreeBSD- p.q.r.s (users available are user)
Now, I need to mount /usr/local/hello folder from freeBSD to mac. So, I am running following command on my mac terminal
Code:
$ sudo mount -o -P -w p.q.r.s:/usr/local/hello /Users/ramesh/mounting
This mounts properly but I m not able to do any modification on the mounted drive. It says "Permission denied"

Please guide me to modify the mounted drive on my mac book.


Regards,
Akash
     
King Bob On The Cob
Mac Elite
Join Date: Apr 2002
Location: Illinois
Status: Offline
Reply With Quote
Jan 11, 2011, 05:18 PM
 
Originally Posted by akashmahakode View Post
Hi All,

I am using Mac Osx 10.6.3 and installed vmplayer 2.4 on it. I loaded Free bsd in vm player. So my guest operating system is FreeBSD and host operating system in Mac.

Consider, Mac IP - a.b.c.d (users available are ramesh)
& FreeBSD- p.q.r.s (users available are user)
Now, I need to mount /usr/local/hello folder from freeBSD to mac. So, I am running following command on my mac terminal
Code:
$ sudo mount -o -P -w p.q.r.s:/usr/local/hello /Users/ramesh/mounting
This mounts properly but I m not able to do any modification on the mounted drive. It says "Permission denied"

Please guide me to modify the mounted drive on my mac book.


Regards,
Akash
You're going to need to help me out. It's most likely because your UIDs don't match between the OSes. I forget, does FreeBSD use a Linux-esque /etc/passwd to store it's login info?
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jan 11, 2011, 06:17 PM
 
If you are mounting the NFS volume via NFSv4 you will need NIS or LDAP to share UID/GID information between systems. Otherwise, if you use NFSv3 what you are doing should work just fine. You can specify the version number with -o vers=<num>. Check out mount_nfs for other useful mount options such as "intr"
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jan 11, 2011, 06:32 PM
 
Originally Posted by King Bob On The Cob View Post
You're going to need to help me out. It's most likely because your UIDs don't match between the OSes. I forget, does FreeBSD use a Linux-esque /etc/passwd to store it's login info?
Yes, it uses a shadow password scheme.
     
King Bob On The Cob
Mac Elite
Join Date: Apr 2002
Location: Illinois
Status: Offline
Reply With Quote
Jan 12, 2011, 12:34 PM
 
Originally Posted by besson3c View Post
If you are mounting the NFS volume via NFSv4 you will need NIS or LDAP to share UID/GID information between systems. Otherwise, if you use NFSv3 what you are doing should work just fine. You can specify the version number with -o vers=<num>. Check out mount_nfs for other useful mount options such as "intr"
NFSv3 still requires you to keep the UID/GID in sync. NFSv4 does some identity translation, but as far as I know it requires the use of kerberos to do so, otherwise it falls back to the NFSv3 method of "Use the same UID/GID"
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jan 12, 2011, 01:04 PM
 
Originally Posted by King Bob On The Cob View Post
NFSv3 still requires you to keep the UID/GID in sync. NFSv4 does some identity translation, but as far as I know it requires the use of kerberos to do so, otherwise it falls back to the NFSv3 method of "Use the same UID/GID"
I don't think it requires Kerberos to do it, NIS and LDAP are fair game too. I'm also certain that it doesn't fall back at all or fall back properly at least on FBSD, because I asked this very question on the FreeBSD file system list where some of the FBSD developers reside.
     
   
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 06:49 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,