跳转到主内容

NFSv4 ACL 访问权限被拒绝

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

适用于

  • ONTAP
  • NFSv4 ACL
  • NFSv4

问题

  • NFS 用户在通过 NFSv4 访问目录时收到 Permission denied
       user1@host1:/vol1$ cd dir1/
     bash: cd: dir1/: Permission denied
  • 该目录配置了 显式 NFSv4  组 ACE
root@host1:/home/localroot# nfs4_getfacl /vol1/dir1/
# file: /vol1/dir1/
A:g:g1@ntap.local:rwaDxtTnNcCy
A::OWNER@:rwaDxtTnNcCy
A:g:GROUP@:rxtncy
D::EVERYONE@:rxtncy
  • ONTAP getxxbyyy 显示 UNIX 用户是配置的 ACE 组的成员
::*> vserver services name-service getxxbyyy getgrlist -node node1 -vserver svm1 -username user1 -use-cache false -show-source true
Source used for lookup: Unknown
pw_name: user1
Groups: 8668 8668 8671 8682
  • NFS 客户端 id 命令可显示缺少 ACE 组的 UNIX 用户
user1@host1:/dir1$ id
uid=5600(user1) gid=8668(gs1) groups=8668(gs1),8671(g2)
  • ONTAP show-effective-permissions 显示 UNIX 用户对该目录具有足够的权限
::*> vserver security file-directory show-effective-permissions -vserver svm1  -unix-user-name user1 -path /vol1/dir1 -instance
                        Vserver: svm1
              Windows User Name: ntap\user1
                 Unix User Name: user1
                      File Path: /vol1/dir1/
                CIFS Share Path: -
          Effective Permissions:
                                 Effective File or Directory Permission: 0x1601ff
                                        Read
                                        Write
                                        Append
                                        Read EA
                                        Write EA
                                        Execute
                                        Delete Child
                                        Read Attributes
                                        Write Attributes
                                        Read Control
                                        Write DAC
                                        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.
  • 这篇文章对您有帮助吗?