Skip to main content
NetApp Knowledge Base

Windows clients using SMB 2.x can still access ~snapshot directory even with "showsnapshot" share property disabled

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

Applies to

  • ONTAP 9
  • CIFS

Issue

  • From Windows client ~snapshot directory is accessible even without "showsnapshot" share property set

clipboard_e0054c8bf25c3723bab7c86d718648d28.png

  • "showsnapshot" share property  is not set for the share "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" is set to true on the volume 

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

  • In Windows client :
    In Registry under the below path there is a DWORD32 "DirectoryCacheLifetime" which is set to zero
    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.