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

Jeremy Allison jra at samba.org
Tue Apr 17 22:10:19 GMT 2007

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.


More information about the samba mailing list