設定方法については、http://moimoitei.blogspot.jp/2007/11/nfsv4-kerberos.html あたりを参考にすればよろしいかと。詳細はそのうち書く…と思う。
teostra:~ lugia% uname -a [20:16] Darwin teostra.local 15.0.0 Darwin Kernel Version 15.0.0: Sat Sep 19 15:53:46 PDT 2015; root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64 teostra:~ lugia% kinit momonga [20:15] momonga@LOCAL's password: teostra:~ lugia% sudo mount -t nfs -o vers=4,sec=krb5 linaro-nano.local:/ tmp Password: teostra:~ lugia% ls -la tmp [20:16] total 49 drwxr-xr-x 5 root wheel 4096 10 13 21:08 . drwxr-xr-x+ 62 lugia staff 2108 11 4 20:05 .. -rw-r--r-- 1 root wheel 0 9 5 13:52 .nilfs drwxr-xr-x 3 root wheel 4096 9 17 20:29 home dr-xr-xr-x 1 root wheel 148 11 2 20:32 root drwxrwxrwx 5 root wheel 4096 11 3 20:44 share teostra:~ lugia%
誰でもいいので、チケットを入手しておかないとマウントできない。
teostra:~ lugia% klist [21:36] klist: krb5_cc_get_principal: No credentials cache file found teostra:~ lugia% sudo mount -t nfs -o vers=4,sec=krb5 192.168.1.8:/ tmp [21:36] mount_nfs: can't mount / from 192.168.1.8 onto /Users/lugia/tmp: RPC prog. not avail teostra:~ lugia% sudo mount -t nfs -o vers=4,sec=krb5 linaro-nano.local:/ tmp mount_nfs: can't mount / from linaro-nano.local onto /Users/lugia/tmp: RPC prog. not avail
サーバーを指定するときにIPアドレスではなく、ホスト名で指定する。
DNS まではなくても、/etc/hosts
にあれば良い。
teostra:~ lugia% kinit momonga [21:41] momonga@LOCAL's password: teostra:~ lugia% sudo mount -t nfs -o vers=4,sec=krb5 192.168.1.8:/ tmp [21:41] mount_nfs: can't mount / from 192.168.1.8 onto /Users/lugia/tmp: RPC prog. not avail teostra:~ lugia% sudo mount -t nfs -o vers=4,sec=krb5 linaro-nano.local:/ tmp teostra:~ lugia% [21:41]