Chmod Calculator
Calculate Unix/Linux file permissions. Toggle checkboxes to build your chmod value instantly.
No data sent to serverRelated Tools
What is chmod?
chmod ("change mode") is a Unix command (POSIX standard, originally Bell Labs Unix) that sets file and directory permissions. Unix permissions control three actions — read, write, execute — for three classes of user: owner, group, and others (everyone else).
The 9 permission bits
Every file has 9 permission bits arranged as 3 sets of (r, w, x):
-rwxr-xr-x ↑↑↑↑↑↑↑↑↑ │└─┘└─┘└─┘ │ │ │ └─ others (4=r, 2=w, 1=x) │ │ └──── group (4=r, 2=w, 1=x) │ └─────── owner (4=r, 2=w, 1=x) └───────── file type (- regular, d directory, l symlink)
Numeric vs symbolic notation
Two equivalent ways to express the same permissions:
- Numeric (octal): Each user class becomes one digit (4 + 2 + 1).
chmod 755 file - Symbolic: Class + operator + permissions.
chmod u=rwx,g=rx,o=rx file - Symbolic relative:
chmod +x file(add execute for everyone),chmod g-w file(remove group write)
Special bits: setuid, setgid, sticky
An optional 4th leading digit controls three special bits: setuid (4) — execute as the file's owner; setgid (2) — execute as the file's group, or new files in a directory inherit the group; sticky (1) — only the file's owner can delete it (used on /tmp). chmod 4755 /usr/bin/passwd gives passwd setuid root so any user can change their password.
⚠️ Reference Only
Output is generated based on your input and is provided for reference. Results may vary depending on your specific use case, edge cases, or environment-specific behavior. We do not guarantee accuracy of conversions, validations, or computed values.
Always verify critical outputs against official documentation or production environments. We are not responsible for any decisions or losses based on these tool results.
📖 Related Guides
Regex Lookahead and Lookbehind Explained
Master regex zero-width assertions: positive/negative lookahead and lookbehind.
Unix Timestamp vs ISO 8601 — Which to Use?
Compare Unix timestamps and ISO 8601 dates for storage, APIs, and human readability.
HTTP Status Codes — Complete Reference (1xx–5xx)
RFC 9110 with real-world API patterns. 401 vs 403, 409 vs 422, 502 vs 503 vs 504.