Skip to main content
NetApp Knowledge Base

User with required permissions getting permission error when trying to delete file or folder on cifs share

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

Applies to

  • ONTAP 9
  • CIFS

Issue

  • User with required permissions is unable to delete the files and folders and getting a permission error.

clipboard_e1f73e280e4b2f0a7f83e5e2f9137c06a.png

  • User has full permissions on the cifs path as per the below command output.
cluster1::> vserver security file-directory show-effective-permissions -vserver vs1 -win-user-name domain1\user1 -path /test/folder
 
Vserver: vs1
Windows User Name: domain1\user1
Unix User Name: root
File Path: /test/folder
CIFS Share Path: -
Effective Permissions:
Effective File or Directory Permission: 0x1f01ff
Read
Write
Append
Read EA
Write EA
Execute
Delete Child
Read Attributes
Write Attributes
Delete
Read Control
Write DAC
Write Owner
Synchronize
  • Sectrace show "Access is denied because a delete is pending on this object".

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

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: domain1\user1
                 UNIX-User: root
                 Session-ID: 1664080010000003555

  • "vserver locks show -vserver <svm> -volume <volume> -path <path>" command shows no locks.
  • Packet traces show "STATUS_DELETE_PENDING".

Number Date           Source       Destination   Protocol     Info                
223727 2020-05-12  10.216.xx.xx   10.216.xx.xx    SMB2      Create Request File: \folder
223744 2020-05-12  10.216.xx.xx   10.216.xx.xx    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.