我有一个NFS4共享与krb5p一起运行。
从CentOS客户端访问它没有任何问题,所需要的只是:
yum install krb5-workstation
setup krb5 (edit krb5.conf, setup keytab)
systemctl enable nfs-secure.service && systemctl start nfs-secure.service
systemctl enable nfs-client.target && systemctl start nfs-client.target
mkdir /mnt/x
Add the following to fstab:
server.example.com:/srv/share/subdir /mnt/x nfs4 defaults,sec=krb5p,noexec,nosuid,_netdev,auto 0 0这在CentOS上运行得很好,到目前为止,我已经安装了十几个客户端主机。然而,在Ubuntu上,我得到:mount.nfs4: an incorrect mount option was specified
我认为Ubuntu错误与nfs-secure.service有关,但是在NFS客户端安装的Ubuntu上似乎没有相应的错误吗?(我使用的是Ubuntu 16.04.5 LTS)。
我试过了:systemctl enable rpc-gssd.service && systemctl start rpc-gssd.service
它可以启动:
# systemctl status rpc-gssd.service
● rpc-gssd.service - RPC security service for NFS client and server
Loaded: loaded (/lib/systemd/system/rpc-gssd.service; static; vendor preset: enabled)
Active: active (running) since Thu 2018-10-04 16:49:40 BST; 6min ago
Process: 51689 ExecStart=/usr/sbin/rpc.gssd $GSSDARGS (code=exited, status=0/SUCCESS)
Main PID: 51691 (rpc.gssd)
Tasks: 1
Memory: 516.0K
CPU: 13ms
CGroup: /system.slice/rpc-gssd.service
└─51691 /usr/sbin/rpc.gssd但是Ubuntu在试图挂载的时候挂起来了?
# mount -v -t nfs4 -o defaults,sec=krb5p,noexec,nosuid,_netdev,auto server.example.com:/srv/dir/example /mnt/example
mount.nfs4: timeout set for Thu Oct 4 16:54:40 2018
mount.nfs4: trying text-based options 'sec=krb5p,addr=10.10.10.10,clientaddr=10.10.10.9'
# NOTHING ELSE HAPPENS.....发布于 2021-11-17 00:40:23
这只是一条通用错误消息(也是完全误导的),它指向客户端kerberos配置中的一个问题,通常是GSSAPI服务没有运行。尝试启动它,或者如果您有nss-client.target,启用/启动它。
https://unix.stackexchange.com/questions/473278
复制相似问题