On Wed, Nov 19, 2003 at 08:46:48PM +0000, Jeremy Allison wrote: > On Mon, Nov 10, 2003 at 03:49:30PM -0800, 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. > > This is not correct. On my W2K box : > > c:\> echo >ro > c:\> attrib +r ro > c:\> del ro > c:\ro > Access is denied. >
Hmm, I see the same on a NT4 machine here too. > I don't know how you're doing this but it isn't via the command line. > The GUI may be doing something different (implicitly removing the R attribute). > But if I go into windows explorer I can delete the file even though it's marked read-only. > Please explain the exact semantics you think we should have, and what > you're not getting. You can also remove the read-only attrib in windows servers, but not on samba servers (unless you have write access which negates the entire purpose...). Here's what I want: make files read-only, make directories writable (for user and group only) can't modify files, must move or delete. Here's what I get: I can move or delete read-only files to my heart's content as long as I own the files. If I don't, then nada. No moving or deleting. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
