[Samba] Fwd: Samba semantics error?

Andrew Bartlett abartlet at samba.org
Tue Nov 11 01:24:20 GMT 2003


On Tue, 2003-11-11 at 10:49, Mike Fedyk wrote:
> On Sun, Nov 09, 2003 at 12:02:21PM +1100, Andrew Bartlett wrote:
> > Under windows, I don't think you can delete a 'read only' file.
> > 
> > Samba takes the missing 'w' for any user as meaning a read-only file.
> 
> I most certainly can.
> 
> I just tried it against a NT4 server, and locally, and it worked perfectly.
> 
> Create temp file, mark read only, delete.  Successful.  Even against samba
> 3.0.0 the file is deletable.
> 
> I just found "Default: delete readonly = no", and changed it to yes, with
> the same result as before.
> 
> Remember, if I own the file, then I can delete it if it's read-only or not,
> and that doesn't follow the DOS semantics you mentioned.
> 
> If someone else owns the file, and I have no write permission to the file,
> but I do have write permission to the directory, I can't delete the file no
> matter what "delete readonly" is set to.
> 
> Where can I find the DOS semantics that would apply to this on the web?

'dos semantics' are whatever Win2k3 does.

> I just tried again against a NT4 server: I created a file, changed the owner
> to a different user, and then deleted the file.  Success.
> 
> Hmm, I was testing with privelaged users, and even with a normal user, it
> lets me delete files that I don't own.

OK, this sounds like a valid semantic difference.  Care to file a bug
over at bugzilla.samba.org?

Bonus points for creating a smbtorture test case to prove it :-).

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20031111/608301bf/attachment.bin


More information about the samba mailing list