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

Carlos Rivera-Jones carlos at sinu.com
Wed Apr 18 15:55:12 GMT 2007


Not built in. 

As mentioned, this is impossible to do in Windows itself (unless you do
some pretty complicated Group Policy stuff in AD).

Carlos

-----Original Message-----
From: samba-bounces+carlos=sinu.com at lists.samba.org
[mailto:samba-bounces+carlos=sinu.com at lists.samba.org] On Behalf Of
xrado
Sent: Wednesday, April 18, 2007 11:52 AM
To: samba at lists.samba.org
Subject: Re: [Samba] delete readonly = no ..not working on windows

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


rado.

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.
>
>   

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


More information about the samba mailing list