[Samba] "attrib +R myowndir" fails to write-protect my own dir

jra at dp.samba.org jra at dp.samba.org
Wed Nov 27 21:12:00 GMT 2002


On Wed, Nov 27, 2002 at 04:06:53PM -0500, daniel.jarboe at custserv.com wrote:
> True, but was his desire to prevent deletion of the directory, like in
> DOS?
> 
> C:\>mkdir test
> C:\>attrib +r test
> C:\>rmdir test
> Access is denied.
> C:\>attrib -r test
> C:\>rmdir test
> 
> This works on windows mapped shares, but not on samba.

Deletion of a file/directory in UNIX is dependent on the
'w' permissions of the enclosing directory (parent), not
the file/directory itself.

Jeremy.



More information about the samba mailing list