在nfs服务器(CentOS)和nfs客户端(Ubuntu)之间共享nfs的用户名

我有一个NFS服务器(CentOs 6.9)和一个NFS客户端(Ubuntu 16.04)。 我已经在服务器上安装了nfs-utils和rpcbind。 服务器configuration如下:
/ etc / exports中

/home 192.168.1.11(rw,no_root_squash,no_subtree_check,sync) 

/etc/idmapd.conf

 [General] Domain = local.domain.edu [Mapping] Nobody-User = nobody Nobody-Group = nobody [Translation] Method = nsswitch 

在Ubuntu上,我安装了nfs-common,当然它也自动安装了rpcbind。 我configuration了nfs相关的文件如下:
/etc/idmapd.conf

 [General] Verbosity = 0 Pipefs-Directory = /run/rpc_pipefs # set your own domain here, if id differs from FQDN minus hostname Domain = local.domain.edu [Mapping] Nobody-User = nobody Nobody-Group = nogroup [Translation] Method = nsswitch 

在/ etc / default / nfs中常见

 STATDOPTS= NEED_GSSD= no NEED_IDMAPD =yes 

并使用以下命令在客户端上安装共享文件夹:

 mount 192.168.1.110:/home /home 

到现在一切都好。 但问题是,当我挂载共享文件夹,权限是奇怪的! 全部如下:

 drwx--x--x 3 nobody 4294967294 4096 Aug 14 01:27 wiki 

我已经把服务器端的所有用户都加到了客户端,并且有相关的UID和GID。 如果我重新启动客户端服务器,一切都会变好

 drwx--x--x 20 wiki wiki 4096 Aug 15 05:19 wiki 

另一个问题是,当我添加一个拥有新所有权和权限的新文件夹时,即使重新启动rpcbind和nfs-utils服务器,它也不会在客户端上获得更新:

 systemctl restart rpcbind systemctl restart nfs-utils.service 

我必须重新启动以使新的更改生效! 任何帮助表示赞赏。