Chmod Calculator
Calculate Linux file permissions in octal and symbolic notation. Includes support for special bits like SUID, SGID, and the Sticky bit with live terminal previews.
How to Use
Using the Chmod Calculator is intuitive and provides instant feedback for your Linux file permission needs.
Step-by-Step Guide
- Select Permissions: Use the interactive grid to toggle Read, Write, and Execute permissions for the Owner, Group, and Others.
- Special Bits: Toggle SUID, SGID, or the Sticky bit if your workflow requires advanced access control.
- Verify Notation: Watch as the Octal (e.g., 0755) and Symbolic (e.g., rwxr-xr-x) strings update in real-time.
- Copy Command: Customize your filename and click the copy icon to get the exact
chmodcommand for your terminal.
About This Tool
Understanding Unix Permissions
In Linux and Unix-like systems, every file and directory has access rights. These are divided into three scopes: Owner (the creator), Group (users in the file's group), and Others (everyone else on the system).
Each scope can have three types of access: Read (4), Write (2), and Execute (1). The octal digit for a scope is simply the sum of these values. For example, Read + Execute = 4 + 1 = 5.
Why Use This Tool
Why use our calculator?
Manual calculation of bitmasks can lead to security vulnerabilities (like accidentally setting 777). Our tool provides a Live Shell Preview, showing you exactly how the ls -l output will look, ensuring you have the right configuration before you apply it to your server.