Access denied for Windows NFS client UID -2 GID -2
Applies to
- ONTAP 9
- NFS
- Windows NFS client
Issue
- Access denied for NFS operations using Windows NFS client
Example:
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