Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-06-2012, 05:02 PM   #1
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,758

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
howto set UID/GUI for NFS server with Mac client

Well now that we have issolated the issue with my Samba being 100% on Win7, Id like to start tackling the NFS side between the server and my MACs.

Few bits to note:

when I first tried to mount the NFS share like I normally would (command +k) it was unable to locate the share and do anything with it so I tried to mount manually via the CLI as follows:

ssmas-imac:~ ssma$ sudo mount -t nfs /Users/ssma/Desktop/LVM/
mount_nfs: /Users/ssma/Desktop/LVM: Operation not permitted
ssmas-imac:~ ssma$ sudo mount -t nfs -o resvport /Users/ssma/Desktop/LVM/

Note the first attempt failed. Google provided the 2nd option that worked. From what I gathered the -o resvport has something to do with the way CentOS is handling NFS...

Mac OS X Automount resvport Option

Symptom: Mac OS NFS client cannot to connect to Linux NFS server, show error message like "Operation is not permitted.."

Reason: If the Linux NFS server exports with secure option, it means it will only listed to requests coming from ports 1-1024 on the client, so that a malicious non-root user on the client cannot come along and open up a spoofed NFS dialogue on a non-reserved port.

Solution: add resvport option on the Mac OS X client. for example:
nfsserver -detaults,resvport nfsserver:/exports/data


So I got it to mount. When I attempted to write anything to the share I was presented with no permissions to the share. My real fast work around was to log into the server as me, create a directory and change the permissions to 777, not a great option that I would like to rectify.

The user on the share = ray, my MAC's user is ssma and kids. Id like for both of them to have the same permissions as ray on that share point.

For those who did not follow the Samba issue the server is CentOS 6.3 fully updated 64bit.

Thanks in advance.
Old 12-06-2012, 05:08 PM   #2
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,758

Original Poster
Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
my issue was as follows:

# exportfs -v
That was my issue. Removed the no_root_squash and poof the Mac was magically able to write and edit files/directories on the NFS share. Thanks hope this helps others to not make the same mistake I did.


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
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 11:22 AM
Could someone write an easy LDAP with NFS Client howto, for squeeze debian? frenchn00b Debian 2 10-26-2009 01:59 AM
nfs server on ubuntu doesn't play nice with nfs client on solaris mathiraj Linux - Networking 11 09-15-2009 03:08 PM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 06:16 AM
Samba uid/gid mapping (Server to client) problems mcle Linux - Networking 2 01-07-2005 09:16 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:08 AM.

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