Skip to main content
NetApp Knowledge Base

Access denied for Windows NFS client UID -2 GID -2

Views:
1,578
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:
12/19/2024, 4:42:21 AM

Applies to

  • ONTAP 9
  • NFS
  • Windows NFS client

Issue

  • Access denied for NFS operations using Windows NFS client

Example:

clipboard_e8d9eeaccee9df169f8ce632204b54e6c.png

Note: Screenshot of Windows popup Destination Folder Acces Denied stating error: You need permission to perform this action (this is not the only way insufficient privileges may manifest)

  • When enabling Windows client for NFS a UNIX user is created having default UID and GID as -2 (or 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

  • When accessing data, the user gets insufficient 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.