Bug 86 - "delete readonly" vs. "delete on close"
"delete readonly" vs. "delete on close"
Product: Samba 2.2
Classification: Unclassified
Component: File Services
All All
: P2 normal
: ---
Assigned To: Jeremy Allison
Depends on:
  Show dependency treegraph
Reported: 2003-05-18 22:39 UTC by Robert Dahlem
Modified: 2003-06-03 10:39 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Robert Dahlem 2003-05-18 22:39:42 UTC
The "delete on close" semantics in smbd/close.c do not check for "delete
readonly = no". 

To reproduce: Configure a share with "delete readonly = no". Client is XP.
Open a command line window, change to the share.

	echo Testing >testfile
	attrib +r testfile
	del testfile              -> Access denied

No open Windows Explorer and delete the file. Explorer asks back, but it will
happily delete the file although it's read only and thus should not be deletable.
Comment 1 Gerald (Jerry) Carter 2003-05-19 12:58:18 UTC
jra is the delete-on-close king
Comment 2 Jeremy Allison 2003-06-03 10:39:03 UTC
This is not a bug. I have just checked W2k ---> w2k and it works identially
with a readonly file. Samba is behaving as Windows does here.