访问 NFS Kerberos 文件共享的 Linux 客户端应具有有效的 Kerberos 票证。

用于从 Host Client 验证 NFS Kerberos 文件共享的 v41 命令示例:
使用以下 mount 命令可以挂载 NFS Kerberos 共享:
[root@localhost ~]# mount -t nfs4 -o minorversion=1,sec=krb5/krb5i/krb5p <primary ip address>:/vsanfs/TestShare-0 /mnt/TestShare-0
[root@localhost ~]# cd /mnt/TestShare-0/
[root@localhost TestShare-0]# mkdir bar
[root@localhost TestShare-0]# touch foo
[root@localhost TestShare-0]# ls -l
total 0
drwxr-xr-x. 1 root root 0 Feb 19 18:35 bar
-rw-r--r--. 1 root root 0 Feb 19 18:35 foo

更改 NFS Kerberos 共享的所有权

您必须使用 AD 域用户名登录,才能拿更改共享的所有权。文件服务配置中提供的 AD 域用户名将作为 Kerberos 文件共享的 sudo 用户。

[root@localhost ~]# mount -t nfs4 -o minorversion=1,sec=sys <primary ip address>:/vsanfs/TestShare-0 /mnt/TestShare-0
[fsadmin@ocalhost ~]# chown user1 /mnt/TestShare-0
[user1@localhost ~]# ls -l /mnt/TestShare-0
total 0
drwxr-xr-x. 1 user1 domain  users 0 Feb 19 18:35 bar
-rw-r--r--. 1 user1 domain users 0 Feb 19 18:35 foo