All pastes #431593 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-09 19:50 UTC
rendered paste body

0123456789
----------
         t =sticky bit
         x =executeable for others.
        w  =writable for others
       r   =readable for others
      s    =sgid bit
      x    =executeable for group owner
     w     =writable for group owner
    r      =readable for group owner
   s       =suid bit
   x       =executeable for owner
  w        =writable for owner
 r         =readable for owner
d          =directory

Sticky Bit on Directories
=========================
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). (HP-UX)

Sticky Bit on Executable Files
==============================
the file does not leave swap space once it terminates upon its next execution. when it is executed again by any 

user, it is read from the swap space, thus speeding up its execution. (HP-UX)

Sticky Bit on Non-Executable Files
==================================

Sticky Bit on Remote Executable Files
=====================================
tells the system to page the text to the local disk. Otherwise, it is "retrieved" across the network. Of course, 

this would only apply when there is actual paging occurring. (HP-UX)

Sticky Bit on Symbolic Links
============================
A symbolic link sticky bit set'd is called a transition link (i.e. links to ease the transition to the new
SVR4 filesystem layout).  Transition links are a bit faster, because  the linked-to filename is stored in the 

inode itself, instead of using an allocation unit to store the link. In order to set the sticky bit on a symlink, 

one must use the undocumented lchmod system call (i.e. lchmod("/bin", 041777)).

SUID bit on Direcotries
=======================
?

SUID bit on Executable Files
============================
execute with the permissions of the owner of the file.

SUID bit on Non-Executable Files
================================
?

SGID bit on Direcotries
=======================
new files and direcotries created within will be owned by the group who owns the directory

SGID bit on Executable Files
============================
?

SGID bit on Non-Executable Files
================================
?