I want to give users the ability to create write and read files in other user directory, but not to have option to delete the file after created ( sticky bit not going to work here ... ) for example :
I have user manager
with directory repository
I have user worker1
that need to write files to /manager/repository
but can't delete the files
I have user worker2
that need to write files to /manager/repository
but can't delete the files
I have user worker3
that need to write files to /manager/repository
but can't delete the files
but worker 1-2-3
can't delete the files after created only manager
and root
can delete the files worker 1-2-3
created.
I tried few chown
and chmod
tricks with applying the sticky bit without success.
worker*
users write to the directory in a certain way? You mentioned in a comment that log files go here, so does that mean a certain executable is launched to create files here? If so you could give theworker
groupsudo
permission to run the executable asmanager
. Then the executable would create logs as themanager
user that could be readable by the workers. – Centimane Sep 07 '16 at 18:19