"delete readonly" vs. "delete on close"

Robert Dahlem Robert.Dahlem at siemens.com
Wed May 14 12:39:27 GMT 2003


This looks like a bug to me: 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.


Robert.Dahlem at siemens.com
Siemens Business Services -  SBS D ORS FS BO DEZ KORDOBA-Outsourcing
Tel: +49-69-797-6530  Fax: +49-69-797-6599
Sent using PMMail (http://www.pmmail2000.com) - fast, decent, email
software; far better than Outlook. Try it sometime.

More information about the samba-technical mailing list