Click to See Complete Forum and Search --> : Anchoring Directories


KarrottoP
11-16-2004, 11:25 AM
Problem: My users keep dragging and dropping directories into other directories on our Samba file server.

Question 1: Is there a way that I can anchor our top level directories so that they can not move or delete the directory but can have full read/write to the data inside of them?

Question 2: Can I also set things up so that Group A can create a directory and Group B can edit the contents of a directory but not move or delete the directory itself?

I tried to write that as clear as possible, any help would be greatly appreciated,

Thanks as always,
Jason Self

ph34r
11-16-2004, 12:01 PM
Take a look at the chattr utility - I think it can keep files/directories from being messed with, no matter what permissions are on it.

happybunny
11-16-2004, 01:32 PM
one thing about chattr that i find weird is that the delete attribute means that the file can be Undeleted, it doesnt prevent it from being deleted.

The imutable flag is what you might be looking for.