Bug 9116 - Try to delete files without permissions give no message, ERRORLEVEL is 0
Try to delete files without permissions give no message, ERRORLEVEL is 0
Status: NEW
Product: Samba 3.5
Classification: Unclassified
Component: File services
3.5.17
PPC AIX
: P5 critical
: ---
Assigned To: Volker Lendecke
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-23 11:55 UTC by Walter Laub
Modified: 2012-08-24 14:26 UTC (History)
1 user (show)

See Also:


Attachments
samba.log, log level = 10 (157.82 KB, application/x-zip)
2012-08-24 14:26 UTC, Walter Laub
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Laub 2012-08-23 11:55:31 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:

DEL [SHARE]\test.txt
IF ERRORLEVEL 1 ECHO Error

(the file is not deleted)
Comment 1 Jeremy Allison 2012-08-23 16:55:36 UTC
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 :-(.

Jeremy.
Comment 2 Walter Laub 2012-08-24 14:26:01 UTC
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.