Sticky Bit Visualizer
<p>A Linux tool to visualize and understand the sticky bit and its effect on directory permissions.</p>
Sticky Bit Visualizer
chmod
What is the Sticky Bit?
The sticky bit is a special permission that can be set on directories (and rarely on files) in Unix/Linux systems. When set on a directory, it allows only the file's owner, the directory's owner, or root to delete or rename files within that directory.
How to Recognize the Sticky Bit
In a directory listing (ls -l), the sticky bit appears as a t
or T
in the others' execute position:
t
: Others have execute permission and sticky bit is set (e.g.,drwxrwxrwt
)T
: Others do not have execute, but sticky bit is set (e.g.,drwxrwxrwT
)
Setting the Sticky Bit
To set the sticky bit on a directory:
Or numerically (the leading 1
sets the sticky bit):
Where is the Sticky Bit Used?
- The most common example is
/tmp
(drwxrwxrwt
), allowing all users to write but only delete their own files. - Rarely used on files; mostly relevant for directories.
Related Tools
ACL Permission Generator (getfacl/setfacl)
<p>A Linux tool to generate getfacl and setfacl commands for managing Access Control Lists (ACLs) on files and directories.</p>
Chmod Calculator
Calculate file permissions in Linux using a visual interface
Chown Command Generator
<p>A Linux tool to easily generate chown commands for changing file ownership between users and groups</p>
Crontab Generator
Generate cron expressions for scheduled tasks
Docker Volume Permission Helper
<p>A tool to help resolve permission issues between Docker containers and host system volumes with proper user/group mappings.</p>
Effective Permission Calculator (User + Group + Others)
<p>A Linux tool to calculate the effective permissions for a user, considering user, group, and others permissions.</p>
Stay Updated with Linux Tips
Get weekly tutorials, command references, and new tool announcements delivered straight to your inbox.