帮助:尝试在 OpenIndiana Hipster GUI 客户端上挂载 FreeBSD 12.1-RELEASE NFS 导出时出现错误 7(RPC:身份验证错误)

帮助:尝试在 OpenIndiana Hipster GUI 客户端上挂载 FreeBSD 12.1-RELEASE NFS 导出时出现错误 7(RPC:身份验证错误)

我有一台 FreeBSD 12.1-RELEASE 机器,主机名DellOptiPlex390。我想导出文件夹/usr/home/jdrch/KeePass/usr/home/jdrch/Sync通过 NFS 将它们安装在 IP 地址为 192.168.0.71 的 OpenIndiana Hipster GUI 计算机上。我的用户名 jdrch 在两台机器上是相同的。因此我有以下几点:

我的/etc/rc.conf

hostname="DellOptiPlex390"
zfs_enable="YES"
kld_list="sysctlinfo"
ifconfig_re0="DHCP"
linux_enable="YES"
dbus_enable="YES"
dsbdriverd_enable="YES"
sddm_enable="YES"
sshd_enable="YES"
nfs_client_enable="YES"
webmin_enable="YES"
smartd_enable="YES"
ntpd_enable=YES
ntpd_sync_on_start=YES
rpcbind_enable="YES"
nfs_server_enable="YES"
nfsv4_server_enable="YES"
mountd_flags="-r"
mountd_enable="YES"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"

我的/etc/exports

# Export /usr/home as read-write to OpenIndiana
/usr/home -alldirs -rw -mapall=MyFreeBSDUsername 192.168.0.71

我导出是/usr/home因为它是 ZFS 文件系统并且导出(5) 联机帮助页似乎暗示这是必要的。自由贸易协定:

必须导出 NFSv4 树根以下子树中的所有 ZFS 文件系统

对其中任何一个文件进行任何更新后,我都会在 FreeBSD 服务器上重新启动 nfsd 和 mountd。

不幸的是,我没有运气能够安装出口。

尝试挂载导出的子文件夹之一失败:

# mount DellOptiPlex390:/usr/home/jdrch/KeePass /export/home/jdrch/KeePass
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
nfs mount: mount: /export/home/jdrch/KeePass: Permission denied

尝试挂载导出的文件系统也失败:

# mount DellOptiPlex390:/usr/home/ /export/home/jdrch/KeePass
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
nfs mount: mount: /export/home/jdrch/KeePass: Permission denied

在 mount 命令中使用sec=sys也不起作用:

# mount -F nfs -o vers=4,sec=sys DellOptiPlex390:/usr/home/jdrch/KeePass /export/home/jdrch/KeePass
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
NFS compound failed for server DellOptiPlex390: error 7 (RPC: Authentication error)
nfs mount: mount: /export/home/jdrch/KeePass: Permission denied

用 FreeBSD 服务器的 IP 地址替换其主机名没有任何效果。

我究竟做错了什么?

相关内容