The Samba-Bugzilla – Bug 9116
Try to delete files without permissions give no message, ERRORLEVEL is 0
Last modified: 2018-03-28 08:46:15 UTC
samba 3.5.17 on AIX 5.3
Scenario: try to delete a file without permissions, will give no warning or message and ERRORLEVEL is zero:
IF ERRORLEVEL 1 ECHO Error
(the file is not deleted)
Debug level 10 log from smbd please. We should be returning a NT_STATUS_ACCESS_DENIED on file open. If we return it on close (when we actually are requested to do the delete - as to delete a file the client requests and open with "delete-on-close" set and then closes the file - then the client ignores the error on the close :-(. ). Windows is very sad :-(.
Created attachment 7818 [details]
samba.log, log level = 10
In the log file you will find 2 delete from Windows Explorer (GUI) and 1 from cmd.
No message or errorlevel > 0 (cmd) is returned.
is this still an issue with recent samba 4 versions?
Oh, an old issue :-)
I tested again, now on Linux, no AIX with samba 4 available:
Client is Winodws 10, 1709:
Zugriff verweigert ("Access denied")
But ERRORLEVEL is still 0. Not sure, but possible, this is client (Windows) related?
well, looks like windows relates, "del thisfiledoesnotexist" even results in ERRORLEVEL 0 on local storage. Closing this bug accrdingly now.