AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
Expand all | Collapse all

What is Sticky bit? In which place i use sticky bit?

  • 1.  What is Sticky bit? In which place i use sticky bit?

    Posted Thu December 10, 2009 11:45 AM

    Originally posted by: raja7


    What is Sticky bit? In which place i use sticky bit?
    #AIX-Forum


  • 2.  Re: What is Sticky bit? In which place i use sticky bit?

    Posted Thu December 10, 2009 01:20 PM

    Originally posted by: peejayeff


    The sticky bit (sometimes called tacky bit -- erroneously IMHO) was originally used to mark executable files so that they would remain in memory. This concept is no longer on modern architectures required so it is now "only" used for directories.
    On AIX it essentially means that when you
    
    chmod +t /some/path/to/dir
    
    you allow only users who own files in that directory to remove them.

    The concept is most useful when applied to public writable directories where the normal rwx permission (allowing any user to delete a file) needs to be more restrictive -- the classic case being /tmp.

    It is also of use when you have public writable FTP (or similar) directories where the data may be seen and anyone may upload to the directory but you wish to not allow any person to remove the files once uploaded. It was the case that the command to make a public FTP setup on AIX did not do this and it was needed to be done manually.

    HTH
    Phil.
    #AIX-Forum


  • 3.  Re: What is Sticky bit? In which place i use sticky bit?

    Posted Thu December 10, 2009 08:09 PM

    Originally posted by: raja7


    Thanks a lot phil..
    #AIX-Forum