[Samba] Fw: share a folder rw, but not deletable?

John H Terpstra jht at samba.org
Wed Mar 26 09:13:26 GMT 2003


On Wed, 26 Mar 2003, Brian Wiese wrote:

> Is there a way in UNIX to make a folder with read+write permissions for
> some group of users, but only allow them to read and write to the
> folder... not actually delete the folder itself?

In Unix/Linux if you can read and write in a directory then you can delete
it. Sorry - we did not invent the rules.

- John T.

>
> I have some samba shares, and directories inside them that I want to
> remain with their current structure and permission settings -- with many
> similiar group-specific files inside each folder, but I don't want the
> users to be able to delete the folders themselves! =)
>
> I've tried setting the directories with the sticky bit (i) with "chattr +i
> dir/" and that didn't work... as now the users could not r/w data within
> the directory.  I don't want the directories to be renamed or deleted.
> Windows has the "delete" permissions available -- but not samba?
>
> Any UNIX/Samba suggestions?
>
> thanks, peace
>
>   Brian Wiese | bwiese at cotse.com | aim: unolinuxguru
> ------------------------------------------------------
>   GnuPG/PGP key 0xF3220030 | "FREEDOM!" - Braveheart
> ------------------------------------------------------
> This is not about Napster or DVDs. It's about your Freedom.
>   I'll see your DMCA and raise you a First Amendment.
>               http://www.anti-dmca.org
>

-- 
John H Terpstra
Email: jht at samba.org


More information about the samba mailing list