I am having problems deleting files with Windows File Explorer from an SMB shared folder residing on a NAS (machine specs are at the end).
I can copy a file from the share to a drive resident on the PC, or edit it directly from the NAS, but when I try to delete the NAS version, WinExplorer says it can’t locate the item and is unable to delete it. The file is still there afterwards, as I can copy it again.
Other areas of the wider SMB share are fine, and deletions can occur as expected.
I looked at the ACL permissions of the share using the standard shell command, with the following results:
Firstly, it doesn’t sound normal to have two sets of permissions for ‘everyone@’!!
Navigating step-by-step to the subdirectory of interest shows an identical report for each. However when I add the filename to the full string pointing to that subdirectory I get:
'stat() failed: No such file or directory'
even though the file is still visible in WinExplorer and accessible for read operations.
I would sincerely appreciate some assistance in solving the problem, if it is with the permissions. Thanks in advance!
Machine specs
-------------
TrueNAS-12.0-U8.1
SuperMicro X10SDV-4C+-TLN4F
32GB ECC RAM
4 x 4TB in RAIDZ1
Edition Windows 11 Pro
Version 23H2
Installed on 16/12/2022
OS build 22631.4317
Experience Windows Feature Experience Pack 1000.22700.1041.0
The vfs objects are out of order which may cause deletion problem. I can’t recall off the top of my head if this is a 12.0 bug. If you don’t have auxiliary parameters for the share set (which tends to break things magnificently in many situations), then upgrade to 13.3.
Just wanted to update this thread to say the upgrade to 13.3 went fine and now all the problems associated with deleting files on the NAS via SMB have gone.