跳转到主内容

即使禁用了"showsnapshot"共享属性、使用SMB 2.x的Windows客户端仍可访问~snapshot目录

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

适用场景

  • ONTAP 9
  • CIFS

问题描述

  • ~snapshot 即使未 "showsnapshot" 设置共享属性、也可以从Windows客户端目录访问

使用SMB 2.x的Windows客户端仍可访问

  • "showsnapshot" 未为共享"vol1"设置共享属性

::> cifs share show -vserver vs912 -share-name vol1
                    Vserver: vs912
                     Share: vol1
           CIFS Server NetBIOS Name: VS912
                     Path: /vol1
               Share Properties: oplocks
                        browsable
                        changenotify
                        access-based-enumeration
                        show-previous-versions

              Symlink Properties: symlinks
            File Mode Creation Mask: -
         Directory Mode Creation Mask: -
                 Share Comment: -
                   Share ACL: Everyone / Full Control
         File Attribute Cache Lifetime: -
                  Volume Name: vol1
                 Offline Files: manual
         Vscan File-Operations Profile: standard
       Maximum Tree Connections on Share: 4294967295
          UNIX Group for File Create: -

  • 卷上的"snapdir-access"设置为true 

::> vol show -vserver vs912 -volume vol1 -fields snapdir-access
vserver volume snapdir-access
------- ------ --------------
vs912   vol1   true

  • 在Windows客户端中:
    在注册表的以下路径下,DWORD32 "DirectoryCacheLifetime" 设置为零
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters

 

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.