The Samba-Bugzilla – Bug 9116
Try to delete files without permissions give no message, ERRORLEVEL is 0
Last modified: 2012-08-24 14:26:01 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.