0
I want restrict permissions to the content of a directory /abc/def/
:
- disable links (symbolic or hard)
- limit the number of write permissions pointing to the same file (e.g. to 1, so only one process can write to the file simultaneously, many can read the file)
Is it possible? and how?
Maybe it is possible to create a special file system and mount it to the this /abc/def/
directory. But then how can I apply special restrictions for a custom file system?
Apart from the face value of your question, what is the objective, why do you NEED this kind of behaviour, what are your trying to achieve? – tink – 2013-03-25T02:58:44.853
I have many instances of same process (in terms of unix: many processes of the same program :) and on request they can write in the file (with resume, if the process will be crashed). So if two processes receiving the same request - they starting to write in the same file...so writing more then it should be there. – static – 2013-03-25T03:10:54.177