Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the sticky bits purpose?

bit purpose sticky
0
Posted

What is the sticky bits purpose?

0

Added: 08/23/01 A ‘t’ or ‘T’ as the last character of the “ls -l” mode characters indicates that the “sticky” (save text image) bit is set. See ls(1) for an explanation the distinction between ‘t’ and ‘T’. The sticky bit has a different meaning, depending on the type of file it is set on… sticky bit on directories ========================= [From chmod(2)] If the mode bit S_ISVTX (sticky bit) is set on a directory, files inside the directory may be renamed or removed only by the owner of the file, the owner of the directory, or the superuser (even if the modes of the directory would otherwise allow such an operation). [Example] drwxrwxrwt 104 bin bin 14336 Jun 7 00:59 /tmp sticky bit on regular files =========================== [From chmod(2)] If an executable file is prepared for sharing, mode bit S_ISVTX prevents the system from abandoning the swap-space image of the program-text portion of the file when its last user terminates. Then, when the next user of the file executes it, the

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.