跳转到主内容

使用NFS v4.x带内安全并对ONTAP挂载进行匿名访问

适用场景

  • ONTAP 9
  • NFS 4.1
  • NFS 4.2

问题描述

  • 运行NFSv4.1客户端命令 ls -l (或 ll)时,用户和组显示错误,如下 99 所示:
centos01$ ls -al mydir/ total 8 drwxr-xr-x. 2 99 99 4096 Jul 22 07:33 . drwxrwxrwx. 4 99 99 4096 Jul 22 07:33 .. -rw-r--r--. 1 99 99 0 Jul 22 07:33 foo
  • 根卷导出已 Superuser Security Types 设置为 none

::> export-policy rule show -vserver SVM  -inst

                   Vserver: SVM
                 Policy Name: default
                 Rule Index: 1
               Access Protocol: nfs
List of Client Match Hostnames, IP Addresses, Netgroups, or Domains: 0.0.0.0/0
               RO Access Rule: any
               RW Access Rule: any
User ID To Which Anonymous Users Are Mapped: 65534
          Superuser Security Types: none
        Honor SetUID Bits in SETATTR: true
          Allow Creation of Devices: true

  • NFS权限不能 chmod 由 任何用户更改、因为此文件属于匿名用户

 

 

 

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