Skip to main content
NetApp Knowledge Base

Unable to access folder with permission error when Share lock exists

Views:
6,719
Visibility:
Public
Votes:
2
Category:
ontap-9
Specialty:
nas
Last Updated:

Applies to

ONTAP 9

Issue

  • Unable to access or delete a folder from Windows Explorer using CIFS even though user has sufficient permission.

Unable to access folder from Windows Explorer

  • It is not possible to take ownership of the file
  • Sectrace collected for Client IP shows, "Access is denied because a delete is pending on this object".

::> vserver security trace trace-result show -vserver SVMNAME
Vserver: SVMNAME

Node     Index     Filter           Details             Reason
--------------- ----- -------------------------- ------------------------------
Node1     1      Security Style:       -         Access is denied because a delete is pending on this object.
                 Protocol: cifs
                 Volume: -
                 Share: test
                 Path: /test/folder
                 Win-User: Domain\username
                 UNIX-User: root
                 Session-ID: 1664080010000003555

  • Lock Status confirmed:

::> vserver locks show -vserver SVMNAME -path /test/folder    

Notice: Using this command can impact system performance. It is recommended
that you specify both the vserver and the volume when issuing this command to
minimize the scope of the command's operation. To abort the command, press Ctrl-C.

Vserver: SVMNAME
Volume   Object Path       LIF         Protocol  Lock Type        Client
-------- ------------------------- ----------- --------- ----------- --------------
VOLNAME
         /test/folder     test_LIF1     cifs    share-level     10.216.41.xx
                                                        Sharelock Mode: read-deny_none

  • Client IP found in locks show output, run below command to verify if session is established using client IP.
    • ::> vserver cifs session show -vserver SVMNAME -address <Client IP> -instance
  • Packet trace shows STATUS_DELETE_PENDING while accessing the folder.

Number Date           Source       Destination   Protocol     Info                
223727 2020-05-12  10.216.xx.xx   10.216.41.20    SMB2      Create Request File: \folder
223744 2020-05-12  10.216.xx.xx   10.216.41.10    SMB2      Create Response, Error: STATUS_DELETE_PENDING

 

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.