sticky \- executable files with persistent text
While the `sticky bit', mode 01000 (see
is set on a sharable executable file,
the text of that file will not be removed from the system swap area.
Thus the file does not have to be fetched from the file system
As long as a copy remains in the swap area, the
original text cannot be overwritten in the file system,
nor can the file be deleted.
(Directory entries can be removed so long as one link remains.)
Sharable files are made by the
To replace a sticky file that has been used do:
(1) Clear the sticky bit with
(2) Execute the old program to flush the swapped copy.
This can be done safely even if others are using it.
(3) Overwrite the sticky file.
If the file is being executed by any process,
writing will be prevented; see the next paragraph
(4) Set the sticky bit again.
Only the super-user can set the sticky bit.
To replace a sharable executable file while any user is
(1) Rename the directory entry for that file with
(2) Install the new program with
set the mode of the new file to agree with that of the original
(4) Delete the old file when convenient.