Skip to main content

Coming soon...New Support-Specific categorization of Knowledge Articles in the NetApp Knowledge Base site to improve navigation, searchability and your self-service journey.

NetApp Knowledge Base

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

Views:
22
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

Scan to view the article on your device

 

  • Was this article helpful?