unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (SunOS-4.1.3)
Page:
Section:
Apropos / Subsearch:
optional field

STICKY(8)                   System Manager's Manual                  STICKY(8)



NAME
       sticky - mark files for special treatment

DESCRIPTION
       The sticky bit (file mode bit 01000, see chmod(2V)) is used to indicate
       special treatment of certain files and directories.   A  directory  for
       which the sticky bit is set restricts deletion of files it contains.  A
       file in a sticky directory may only be removed or renamed by a user who
       has  write  permission on the directory, and either owns the file, owns
       the directory, or is the super-user.  This is  useful  for  directories
       such  as  /tmp,  which must be publicly writable, but should deny users
       permission to arbitrarily delete or rename the files of others.

       If the sticky bit is set on a regular file and no execute bits are set,
       the system's page cache will not be used to hold the file's data.  This
       bit is normally set on swap files of diskless clients so that  accesses
       to these files do not flush more valuable data from the system's cache.
       Moreover, by default such files are treated as swap files, whose  inode
       modification  times may not necessarily be correctly recorded on perma-
       nent storage.

       Any user may create a sticky directory.  See chmod  for  details  about
       modifying file modes.

BUGS
       mkdir(2V) will not create a file with the sticky bit set.

FILES
       /tmp

SEE ALSO
       chmod(1V), chmod(2V), chown(2V), mkdir(2V)



                                 2 March 1989                        STICKY(8)