Re: STICKY BIT !

From: Bill Campbell (bill_at_celestial.com)
Date: 05/31/03

  • Next message: Bill Vermillion: "Re: SCO Technical Articles to say "tata"."
    Date: Sat, 31 May 2003 02:44:37 GMT
    To: Sco Mailing List <scomsc@xenitec.on.ca>
    
    

    On Sat, May 31, 2003 at 09:51:44PM -0400, Patrice Brien wrote:
    >I have some Sco OpenServer 5.0.x
    >
    >I often get a sticky bit on /tmp directory
    >
    >No body set that permission !
    >
    >Where is it come from ?
    >
    >Even if I set "chmod 777 /tmp", sometime a week after , i get the same
    >problem again.

    This isn't a problem, but a feature. The sticky bit on /tmp helps minimize
    some kinds of attacks that take advantage of race condtions with
    predictable file names created in the /tmp directory. It allows anybody to
    create entries in /tmp, but only the owner (and root of course ) can delete
    an entry once its created.

    The modes of /tmp will often get reset by programs like ``custom'',
    ``fixmog'', and ``fixperm''.

    Bill

    --
    INTERNET:   bill@Celestial.COM  Bill Campbell; Celestial Software LLC
    UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
    FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
    URL: http://www.celestial.com/
    ``Never blame a legislative body for not doing something.  When they do
    nothing, that don't hurt anybody.  When they do something is when they
    become dangerous.''
        Will Rogers
    

  • Next message: Bill Vermillion: "Re: SCO Technical Articles to say "tata"."

    Relevant Pages

    • STICKY BIT !
      ... I have some Sco OpenServer 5.0.x ... I often get a sticky bit on /tmp directory ... No body set that permission! ...
      (comp.unix.sco.misc)
    • Re: hi,a question
      ... > I found some of the file permission of the files in solaris like this ... the sticky bit sets the "ISVTX" ... unloaded from memory. ... You probably won't be able to execute that ...
      (comp.unix.solaris)
    • Re: Modifying read only files in Java
      ... only need execute permission on the directory ... >> also sticky bit is used for something else that is obsolete now ... versions of Unix to save reloading frequently used programs ...
      (comp.lang.java.programmer)
    • Re: How to disallow a user removing a directory but allow removing files within it?
      ... > Owned by root, group root, sticky bit set, write permission to anyone (or, ... I had ruled out the sticky bit before, ... permission), even when owner and group are root. ... directory or if I want to protect a certain file itself to make that file ...
      (comp.os.linux.security)
    • Re: chmod, chown and user, group
      ... Not if the sticky bit is clear, ... Editing /etc/group works if that is where your system stores group ... a good way to determine if ACLs are used, ... ignores the usual permission bits. ...
      (comp.os.linux.development.apps)