← Back to Script House

Linux Permission Calculator

Interactive tool for understanding and calculating file permissions

File Type
Permission Matrix
Owner (u)
Group (g)
Others (o)
r Read
w Write
x Execute
Numeric (Octal)
000
Symbolic
---------
Permission Breakdown
Owner
---
0
0+0+0
Group
---
0
0+0+0
Others
---
0
0+0+0
Direct Input
Common Presets
chmod Command
Apply these permissions with:
chmod 000 filename

Security Warning

These permissions may pose security risks.

Understanding Permissions

4 r (read)
Files: View contents | Directories: List files (ls)
2 w (write)
Files: Modify contents | Directories: Create/delete files
1 x (execute)
Files: Run as program | Directories: Enter directory (cd)

How to Calculate

Add the values for each permission type:
r (4) + w (2) + x (1) = 7 (full access)
r (4) + x (1) = 5 (read and execute)
r (4) = 4 (read only)

Combine three digits for owner, group, and others:
755 = rwxr-xr-x (owner: full, group/others: read+execute)

← Directory Reference Back to Labs →