User with required permissions getting permission error when trying to delete file or folder on cifs share
Applies to
- ONTAP 9
- CIFS
Issue
- User with required permissions is unable to delete the files and folders and getting a permission error.

- 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/folderVserver: vs1Windows User Name: domain1\user1Unix User Name: rootFile Path: /test/folderCIFS Share Path: -Effective Permissions:Effective File or Directory Permission: 0x1f01ffReadWriteAppendRead EAWrite EAExecuteDelete ChildRead AttributesWrite AttributesDeleteRead ControlWrite DACWrite OwnerSynchronize- 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
