LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   howto set UID/GUI for NFS server with Mac client (https://www.linuxquestions.org/questions/linux-newbie-8/howto-set-uid-gui-for-nfs-server-with-mac-client-4175440343/)

lleb 12-06-2012 04:02 PM

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.

lleb 12-06-2012 04:08 PM

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.


All times are GMT -5. The time now is 12:03 AM.