跳转到主内容

对Windows NFS客户端UID -2 GID -2的访问被拒绝

Views:
35
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
NAS
Last Updated:

适用场景

  • ONTAP 9
  • NFS
  • Windows NFS客户端

问题描述

  • 使用Windows NFS客户端对NFS操作的访问被拒绝

示例:

clipboard_e8d9eeaccee9df169f8ce632204b54e6c.png

注意:Windows弹出窗口目标文件夹访问被拒绝的屏幕截图 、显示错误:You need permission to perform this action  (这不是Privileges可能出现清单不足的唯一方式)

  • 为NFS启用Windows客户端时 、系统会创建一个UNIX用户、其默认UID和GID为-2 (或4294967294)。

C:\Users\Administrator.DOMAIN>mount

Local   Remote                  Properties
-------------------------------------------------------------------------------
Z:     \\10.xx.xx.20\vol1           UID=-2, GID=-2
                         rsize=65536, wsize=65536
                         mount=hard, timeout=0.8
                         retry=1, locking=yes
                         fileaccess=765, lang=ANSI
                         casesensitive=no
                         sec=sys

  • 访问数据时、用户获得的Privileges不足。

cluster1::> vserver security file-directory show-effective-permissions -vserver svm1 -unix-user-name user1 -path /vol1/Folder1

        Vserver: svm1
   Windows User Name: NASLAB\user1
    Unix User Name: user1
       File Path: /vol1/Folder1
    CIFS Share Path: -
Effective Permissions:
            Effective File or Directory Permission: 0x1200b9
             Read
             Read EA
             Write EA
             Execute
             Read Attributes
             Read Control
             Synchronize

 

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

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.