Chmod Calculator - Unix File Permissions Made Simple
Unix file permissions can be confusing, especially when you need to translate between numeric and symbolic notation on the fly. The Chmod Calculator lets you set owner, group, and other permissions visually and instantly see the corresponding numeric code and chmod command.
Features
- Interactive permission grid - Toggle read, write, and execute bits for owner, group, and others with checkboxes
- Numeric notation - See the three-digit (or four-digit) octal value update in real time as you change permissions
- Symbolic notation - View the equivalent symbolic representation like
rwxr-xr--alongside the numeric code - Special permissions - Configure setuid, setgid, and the sticky bit with clear explanations of what each does
- Reverse lookup - Enter a numeric code like
755and see the corresponding permission breakdown - Command output - Get a ready-to-use
chmodcommand you can paste directly into your terminal - Common presets - Quick buttons for frequently used permission sets like 644, 755, 700, and 777
How to Use
- Click the checkboxes to set read, write, and execute permissions for owner, group, and others.
- Optionally enable special permissions like setuid or sticky bit.
- Review the numeric and symbolic notation displayed below the grid.
- Copy the generated
chmodcommand for use in your terminal. - Alternatively, type a numeric code into the input field to see its permission breakdown.
Use Cases
- Setting correct permissions on web server files and directories
- Troubleshooting access denied errors on Linux or macOS systems
- Teaching or learning Unix permission concepts with visual feedback
- Quickly converting between numeric and symbolic permission formats during code reviews
FAQ
What is the difference between 755 and 644?
Permission 755 (rwxr-xr-x) gives the owner full access and lets everyone else read and execute, which is typical for directories and scripts. Permission 644 (rw-r--r--) gives the owner read and write access while others can only read, which is standard for regular files.
What does the sticky bit do?
The sticky bit, set on directories, ensures that only the file owner can delete or rename files within that directory, even if other users have write access. It is commonly used on shared directories like /tmp.
Can I calculate permissions for multiple files at once?
The tool generates a single chmod command per configuration. For batch operations, you can combine the output with shell commands like find and xargs in your terminal.