sticky bit
A special permission on a directory that lets users delete or rename only their own files inside it, even when everyone may write there.
In more detail
It is shown as t in the last position, as in drwxrwxrwt, and as a leading 1 in octal, as in 1777. /tmp uses it so users cannot remove each other's files. It adds a rule about removing names; it does not replace ordinary read, write and search permissions.
Related terms
- /tmp — The shared directory where any user or program can create temporary files, often cleared on reboot.
- file mode — The set of permission bits stored with each file that says what the owner, the group and everyone else may do with it.
- world writable — A permission setting that lets every user on the system modify a file or add and remove entries in a directory.
- octal mode — Writing a file mode as base-8 digits, one per class, where each digit is the sum of read 4, write 2 and execute 1.
Taught in
- Directories, Umask And The Sticky Bit — Linux Fundamentals & Systems Administration