Unsolved
This post is more than 5 years old
1 Message
0
3758
July 26th, 2016 13:00
Kerberized NFS on Mac OS X
Has anyone been able to mount NFSv3 or NFSv4 using kerberized NFS on Mac OS 10.9, 10.10 or 10.11? We have this working in Linux, but not Mac.
We are able to mount using AUTH_SYS, but using the sec=krb5 mount option results in an "Operation not permitted" error. Our Macs are bound to AD and are using Unix uid/gids.
as root works:
su root
mount -t nfs nfs.server.com:/ifs/test /mnt/nfs
as a domain user does not:
kinit
mount -t nfs -o sec=krb5 nfs.server.com:/ifs/test /mnt/nfs
mount_nfs: can't mount /ifs/test from nfs.server.com onto /mnt: Operation not permitted
In our troubleshooting, we came across this article which details how kerberized NFS is not compatible with AD:
Computer Laboratory – Dr Markus Kuhn: OS X Kerberized NFS is incompatible with Active Directory
So we tried testing with 10.9.5 with the changes to krb5.conf with no luck.
After reaching out to Apple, we have tested with macOS Sierra as it's supposed to have AES support in RPCSEC_GSS and still no luck.


BernieC
76 Posts
1
July 27th, 2016 00:00
Hi there,
What I'm going to share below has not been updated in quite some time as I just haven't had time to go back and test newer OS X combinations with AD (and even newer versions of OneFS), but this is what I came up for a working Kerberized NFSv3 setup with OS X and AD. Last update on this was December of 2013 and was done for OneFS 6.5 which was still using kernel NFS. If your cluster is running 7.2 or later then any cluster sysctl changes won't work as the NFS service has been moved out of the kernel and into userspace.
I hope this helps...
OS X idiosyncrasies
10.7, 10.8, and 10.9 client against AD
Notes
AD setup
Cluster setup
sysctl vfs.nfsrv.principal_instance=bernie-655.bernielab.com
isi_for_array -s "killall gssd" isi_for_array -s "killall nfsd" isi_for_array -s "killall -HUP nfsd" isi_for_array -s "tail -5 /var/log/nfs.log"
Mac setup and mounting
[libdefaults] allow_weak_crypto = true
sudo mount -o sec=krb5 bernie-655.bernielab.com:/ifs/data/berniec1 /mnt
Troubleshooting
kdestroy, followed bykinit username@REALM.References
Originally, it looked like none of this would work on the Mac, and I had found the following details from other users that had difficulty. Keeping these here just in case I need to refer back to them.