Skip to main content
NetApp Knowledge Base

Permission denied to delete thumbs.db file

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

Applies to

  • ONTAP 9
  • CIFS

Issue

  • CIFS share can't be deleted
  • thumbs.db file in share
  • Deletion fails
PS K:\empty> dir
Directory: K:\empty
Mode LastWriteTime Length Name
---- ------------- ------ -----a----
06/22/2023 13:03 0 test2.txt

PS K:\blank> dir test2.* -File -Recurse -ErrorAction SilentlyContinue -Force | Remove item

PS K:\empty> dir
PS K:\empty>

PS K:\blank> dir thumbs.db -File -Recurse -ErrorAction SilentlyContinue -Force | Remove item
Remove-Item : The item K:\empty\Thumbs.db cannot be removed: you do not have enough
Access permissions to perform this operation.
In Line:1 Character:69
+ ... .db -File -Recurse -ErrorAction SilentlyContinue -Force | Remove item
+ ~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (K:\empty\Thumbs.db:FileInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
  • Access Based Enumeration (ABE) not enabled
Share: XXXXXXXXX
                     CIFS Server NetBIOS Name: SVM-NAS
                                         Path: /svm_nas_cifs/data/XXXX
                             Share Properties: browsable
                                               show-previous-versions
                                               oplocks
                                               changenotify
                           Symlink Properties: symlinks
                      File Mode Creation Mask: -
                 Directory Mode Creation Mask: -
                                Share Comment: User data
                                    Share ACL: everyone / Full Control
                File Attribute Cache Lifetime: -
                                  Volume Name: svm_nas_cifs
                                Offline Files: manual
                Vscan File-Operations Profile: standard
            Maximum Tree Connections on Share: 4294967295
                   UNIX Group for File Create: -

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.