How to use this calculator
Decode an octal Unix file mode into owner, group, and other read, write, and execute permissions.
- Enter Octal mode digits (0000–7777). Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How this calculation works
Unix permission digits encode read, write, and execute access for the owner, group, and everyone else. Enter the octal digits as a whole number; optional leading zeroes do not change the permission bits. The leading special digit represents setuid, setgid, and the sticky bit.
Inputs and units
mode— Octal mode digits (0000–7777)- Enter digits such as 644 or 0755; only digits 0–7 are valid.
Formula
Each permission digit = 4r + 2w + x, where r, w, and x are 1 when that access bit is set and 0 otherwise; digits are interpreted in base eight.
Worked example
Mode 0755 (entered as 755) has digit 7 for the owner and 5 for group and others: owner gets read/write/execute, while group and others get read/execute. No special bits are set.
Assumptions and limits
Only standard four-digit octal modes from 0000 through 7777 are accepted. ACLs, inherited permissions, filesystem mount rules, and operating-system policy can further affect actual access.
Frequently asked questions
What does 755 mean in chmod?
The owner has read, write, and execute; group and others have read and execute.
Is 0755 different from 755?
No. A leading zero in the written mode indicates octal notation and does not change its digits.
What is the first digit in 4755?
It is the special-bit digit: 4 means setuid, 2 means setgid, and 1 means sticky; combinations add these values.
How do I use the Unix file permission mode calculator?
Enter Octal mode digits (0000–7777). Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Unix file permission mode?
Mode 0755 (entered as 755) has digit 7 for the owner and 5 for group and others: owner gets read/write/execute, while group and others get read/execute. No special bits are set.
Reference: technical reference. See our calculation methodology.