跳转到主内容

在Windows上创建文件后、为什么所有者是root、而组是Linux上的bin?

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

适用场景

  • ONTAP 9
  • CIFS
  • NFS

问题解答

  • 如果高级CIFS服务器选项"将管理员映射到UNIX用户'root'"(-是 管理员用户映射到已启用root)设置为true、则作为"BUILTIO\Administrators "组成员的Windows用户将映射到UNIX用户"root"、除非它们明确映射到UNIX用户。
  • 在ONTAP中、每个SVM上的默认本地UNIX用户"root"的用户ID (UID)为0、主组ID (GID)为1、其本地UNIX组为"daemon (守护进程)"。  在这种配置下、映射到UNIX用户"root"的Windows用户创建的文件将显示为UNIX用户"root"(UID 0)和组"daemon "(GID 1)所拥有。
  • 对于由映射到UNIX用户"root"的Windows用户创建的文件、NFS客户端可以根据其本地配置(即/etc/group"文件或LDAP)将组ID (GID) 1解析为UNIX组"bin"。

追加信息

  • 将管理员组映射到root
  • Vserver CIFS options修改
  • 如果某个Windows用户是"BUILTIN\Administrators "组的成员、并且该用户存在显式用户映射、则显式名称映射优先。
  • 此参数的默认值为true。
  • 将参数设置为false可禁用将管理员组成员映射到root的功能。
set -privilege advanced vserver cifs options modify -vserver vserver_name -is-admin-users-mapped-to-root-enabled false set -privilege admin

 

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.
Scan to view the article on your device