NFSv4客户端将用户和组显示为nobody
适用场景
- ONTAP 9
- NFSv4
- Linux
问题描述
- 运行NFSv4客户端命令
ls -l (or ll)
时、用户和组显示错误nobody
、如下所示:
NFSv3示例:
[root@nfs_SVM> mount_point]# ls -l test1
-rw-r--r--. 1 root root 0 Oct 18 12:34 test1
NFSv4示例:
[root@NFS_SVM> mount_point]# ls -l test1
-rw-r--r--. 1 nobody nobody 0 Oct 18 12:34 test1
- 与ONTAP 相比、客户端显示的ID不同
# getent passwd | egrep "username|id"
# getent group | egrep "groupname|id"
- ONTAP 使用以下命令在高级权限模式下显示与客户端详细信息不同的本地用户和组的凭据:
::*> vserver services name-service unix-user show -vserver SVM
::*> vserver services name-service unix-group show -vserver SVM
- ONTAP 无法解析LDAP中的凭据:
::*> vserver services name-service getxxbyyy getpwbyuid -node NODE-01 -vserver SVM -useriD 123 -show-source true
Error: command failed: Failed to resolve 123. Reason: Entry not found for "userid: 123".
::*> vserver services name-service getxxbyyy getgrbyname -node NODE-01 -vserver SVM -groupname example -show-source true
Error: command failed: Failed to resolve example. Reason: Entry not found for "groupname: example".
::*> vserver services name-service getxxbyyy getgrbygid -node NODE-01 -vserver SVM -groupiD 123 -show-source true
Error: command failed: Failed to resolve 123. Reason: Entry not found for "groupid: 123".