I'm running a Debian 7 server and have the following Scenario (example names)
- File W (Owner paul, Group paul, Rights: 0770)
- File X (Owner paul, Group paul, Rights: 0700)
- File Y (Owner paul, Group paul, Rights: 0700)
- File Z (Owner john, Group paul, Rights: 0770)
The user john should be able to delete "File Z" but not "File X" or "File Y" He should also have permission to edit and delete "File W".
Short: He should only be able to delete his own files but edit all with the permission for it.
Im searching a solution to use the deletion bit of the directory on specified files. The option "chattr" is no option because nothing should be done with root rights.
Does anybody has an idea?