LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
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 192.168.2.125:/mnt/users/ray /Users/ssma/Desktop/LVM/
Password:
mount_nfs: /Users/ssma/Desktop/LVM: Operation not permitted
ssmas-imac:~ ssma$ sudo mount -t nfs -o resvport 192.168.2.125:/mnt/users/ray /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, 04:08 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

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

Code:
# exportfs -v
/mnt/users/ray	192.168.2.0/24(rw,wdelay,no_root_squash,no_subtree_check)
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.
 
  


Reply


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


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

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