Chmod Calculator

Generate Linux/Unix file permission codes.
Calculator
Enter your values
Analysis
Interpretation of the current calculator output

Enter values to see detailed analysis and insights.

How to Use

Step-by-step instructions
  1. 1Check the boxes to enable permissions for Owner, Group, and Public.
  2. 2The calculator will generate the octal code (e.g., 755) and symbolic string (e.g., -rwxr-xr-x).

Octal Permissions

Sums the values for each permission type (Read, Write, Execute) for each user group (Owner, Group, Public) to generate a 3-digit octal code.
Read=4, Write=2, Execute=1

Variables:

r4
w2
x1

Example

Standard Web File

Inputs:

Owner:RW-
Group:R--
Public:R--

Steps:

  1. 1.Owner: 4+2 = 6
  2. 2.Group: 4 = 4
  3. 3.Public: 4 = 4
Result:
644 (-rw-r--r--)

Frequently Asked Questions

What is 777?

777 means everyone can read, write, and execute the file. This is generally considered a security risk.