Chmod Calculator
Build a three-digit Unix permission mode from owner, group and other permissions.
Formula
digit = read(4) + write(2) + execute(1)
How to use
- For each group, add 4 for read, 2 for write and 1 for execute.
- Enter the three resulting digits from 0 to 7.
- Use the octal mode; the decimal mask is shown separately.
Examples
- Owner 6, group 6, others 4 gives mode 664.
Frequently asked questions
What does 7 mean?
Read, write and execute: 4 + 2 + 1 = 7.
Are special bits included?
No. This covers ordinary rwx permissions, not setuid, setgid or sticky bits.
Why can leading zeros disappear?
Mode 055 and 55 represent the same ordinary permission bits. The result is octal, not decimal.
Sources
Updated: