[SOLVED] howto set UID/GUI for NFS server with Mac client
Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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/
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.
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.