跳转到主内容

什么时候 NFS 挂载的所有者会显示为 nobody?

Views:
175
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

适用于

  • ONTAP
  • NFSv4
  • NFS 挂载

回答

在以下三种情况中,没有人出现:

  • 客户不知道用户是谁
    • getent passwd <uid> 和getent group <gid> 在客户端上可以与来自 ONTAP 的file-directory show结合使用,以查看是否存在不匹配
      • 如果getent 不显示用户或组,则客户端不知道用户/组是谁,并会显示"nobody"。
      • 在 NFSv3 中,客户端可以显示 uid/gid,但对于 NFSv4,如果 ONTAP 可以获取名称,则不会发送 uid/gid。
      • 如果客户端和 ONTAP 对用户存在分歧,将显示"nobody"
        • 示例:客户端报告 uid 1111 映射到"user",但 ONTAP 具有 1111 到"adminuser"的本地映射
          ​​
  • ID 域不匹配 - 如果 ID 域不匹配,则客户端将不会尝试查找用户/组。
  • 此文件/目录由 'nobody' 合法拥有
    • 常见的 nobody uid/gid 为 99、65534 和 65535
    • 这可能是由于用户写入的文件通过导出策略被映射为匿名用户所致,例如,如果挂载时的安全类型为 null,或者在 root 映射的情况下
    • 这也可能是由于从 CIFS 客户端使用没有有效名称映射的用户在 UNIX 安全模式卷或 qtree 上创建文件所致,此时创建文件的用户将被映射到默认用户,通常为 65534
    • 要确认:

::> vserver security file-directory show -vserver affected_vserver -path /volname/file

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.