Inputs
Convert Unix read, write and execute permissions to octal.
Result
More Information
How to use this calculator
Translate Unix file permission flags between symbolic notation and octal digits. Permissions are grouped for owner, group and others, with read, write and execute bits in each group.
How the calculation works
Read has weight 4, write has weight 2 and execute has weight 1. Add the allowed weights in each group to form a three-digit octal permission such as 755.
Worked example
755 means owner 7 (rwx), group 5 (r-x) and others 5 (r-x). A regular private file might use 600: owner read/write, no group or other permissions.
Understanding the result
On directories, execute permission allows traversal; read allows listing names, subject to execute permission. Use the principle of least privilege rather than making files world-writable.
Assumptions and limitations
The basic three-digit mode does not fully describe ACLs, ownership, umask or special setuid, setgid and sticky bits. Actual access also depends on the filesystem and operating system.
Frequently asked question
Why is chmod 777 risky? It gives everyone read, write and execute permissions and can expose or alter files unnecessarily.