[Samba] delete readonly = no ..not working on windows

xrado xrado at email.si
Wed Apr 18 15:51:57 GMT 2007

so is there a way to prevent deletion of read-only flagged files?

or maybe even disallow deletion of files with some prefix in file name

anyway i want to prevent deletion of files that are marked some way on 
writeable share


Jeremy Allison wrote:
> On Tue, Apr 17, 2007 at 11:49:49PM +0200, xrado wrote:
>> i tried with samba 3.0.22 and 3.0.24 and not working
>> or i have something misconfigurated
>> when i copy file to share it have -rwxrw----
>> after flaging it readonly become -r-xr-----
>> and i can still delete it with windows explorer
>> any idea why?
> Firstly, modern Samba stores DOS attributes
> in extended attributes, so removing the 'w'
> bits doesn't make a file read-only, it changes
> the access permissions (not the same thing).
> Check what the setting of the user.DOSATTRIB
> ea is.
> Secondly, Windows explorer asks if you want
> to delete a read-only file first - if you
> say "yes" it removes the read-only attrib
> then deletes it.
> Samba works correctly with these calls.
> Jeremy.

More information about the samba mailing list