I've got a CentOS server that performs a few dedicated tasks, where different processes/users need to full access to each others files. As these files are temporary in nature, they are stored in the /tmp
directory.
The /tmp
directory has the sticky bit set by default. So for my scenario, I disable the sticky bit, otherwise process/user B cannot delete the file created by process/user A - and it should be able to do that, because A merely provides B and only after B is finished, the file can be deleted.
chmod -t /tmp
So far so good! However, every time I reboot the machine, it automatically sets the sticky bit again, and I have the remove it once more.
I've been thinking about creating another directory for these files, but that does not seem quite necessary to me, since, as I said, the server performs a few dedicated tasks, ie. there's not much going on besides A and B doing their jobs.
But in what way can I remove the sticky bit and let it be persistent? If it cannot be done with chmod
then how?