imagine the following folder structure
../documents
../documents/templates
I have two user groups:
- editors
- managers
Users of both groups should be able to
- create new files
- modify any files
- delete any files
in ../documents.
Both groups should also be able to read any files in ../documents/templates.
Only users in group "managers" should be able to
- create new files
- modify any files
- delete any files
in ../documents/templates.
The directory "../documents/templates" should be undeletable for both groups!
How can I achieve that? I came to the conclusion, that this isn't possible with Linux (even with POSIX ACLs), because you need to set g=rwx for "documents", which will allow users of both groups to create/delete/modify any files in that directory... but +w also allows the deletion of the subdirectory "templates" and I don't know a way to deny that.