What does the trailing t enforce on /tmp?
drwxrwxrwt 18 root root 4096 /tmp
- Only a file's owner may delete it
- Files are wiped clean at every reboot
- New files inherit the root group
- Only root may create new files
The sticky bit on a world-writable directory stops users from deleting or renaming files they do not own.
Play Linux CLI ▸