Nasty Security Hole?

Jim Waters waters at polya.Stanford.EDU
Sat Nov 19 18:17:36 AEST 1988


In article <145 at tree.UUCP> stever at tree.UUCP (Steve Rudek) writes:

>Yeah, unfortunately write permission to a file or directory is an
>all-or-nothing matter.  You can't give permission to add a new file to
>a directory without also granting permission to wipe out everything in
>that directory, can you?

Well, that depends which Unix you're running.  Ultrix sticky(8) reads:

     A directory whose `sticky bit' is set becomes an append-only
     directory, or, more accurately, a directory in which the
     deletion of files is resrticted.  A file in a sticky direc-
     tory may only be removed pr renamed by a user if the user
     has write permission for the directory and the user is the
     owner of the file, the owner of the directory, the super-
     user.  This feature is usefully applied to directories such
     as /tmp which must be publicly writeable but should deny
     users the license to arbitrarily delete or rename each oth-
     ers' files.

Of course, that's just Ultrix....

---------------------------------------------------------------------------
      Jim Waters                INTERNET: waters at umunhum.stanford.edu
USPS: P.O. Box 13735                      waters at argus.stanford.edu
      Stanford, CA 94309        UUCP:  ...decwrl!umunhum.stanford.edu!waters
AT+T: (415)323-3063             BITNET:   waters%umunhum.stanford.edu at stanford



More information about the Comp.unix.wizards mailing list