LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   what is a 'sticky directory'? (https://www.linuxquestions.org/questions/linux-general-1/what-is-a-sticky-directory-251806/)

servnov 11-06-2004 10:53 AM

what is a 'sticky directory'?
 
I noticed /tmp/ was a 'sticky dir' what does this mean?

druuna 11-06-2004 10:59 AM

Everyone can read, write, and access the directory. The "t'' indicates that only the user (and root, of course) that created a file in this directory can delete that file.

BTW: Your fav searchengine would have answered this one in a heartbeat......

Anyway: Hope this helps.

servnov 11-06-2004 11:15 AM

cool. how can set other this with chmod?

btmiller 11-06-2004 11:54 AM

chmod o+t <directory> or chmod 1XXX <directory>, where XXX are the normal numeric permissions for owner, group, and other.

amfoster 11-06-2004 01:15 PM

chmod 4777 sets suid
chmod 2777 sets sgid
chmod 1777 sets stickybit

whoops btmiller already showed the octal


All times are GMT -5. The time now is 03:15 PM.