Chmod Permissions Calculator
Calculate Linux and Unix file permissions with an interactive 3x3 matrix, octal, and symbolic codes.
Runs in your browser. Nothing you add is uploaded.
What the Chmod Permissions Calculator does
Unix and Linux file permissions determine who can read, modify, or execute files and directories on a server. Remembering octal numbers, symbolic representations, and special bits (SUID, SGID, Sticky) can be error-prone. This interactive calculator synchronizes a 3x3 permission grid with octal codes and generates exact chmod commands.
How to calculate chmod permissions
- Toggle Read (4), Write (2), and Execute (1) checkboxes for Owner, Group, and Others.
- Enable SUID, SGID, or Sticky Bit if configuring shared directories or special binaries.
- Watch the Octal number (e.g. 755 or 644) and Symbolic string (-rwxr-xr-x) update in real time.
- Select from common server presets like SSH keys (600), web directories (755), or scripts.
- Copy the ready-to-run chmod command or recursive directory fix script.
The Chmod Permissions Calculator runs entirely in your browser — nothing you enter is uploaded, stored, or logged.
When to use it
Securing SSH Key Files
OpenSSH strictly refuses private keys with loose permissions. Use chmod 600 (read/write for owner only) to fix 'WARNING: UNPROTECTED PRIVATE KEY FILE!'.
Web Server File and Directory Security
Fix web server permission issues by setting directories to 755 (drwxr-xr-x) and files to 644 (-rw-r--r--) with the provided find command.
Shared Directory Collaboration with Sticky Bit
Configure /tmp or team folders with chmod 1777 (drwxrwxrwt) so team members can create files without deleting each other's work.
Good to know
- Directories always require the execute bit (x) for users to cd into them or list their contents.
- Avoid chmod 777 on production servers; it gives every local user write access to critical files.
- SUID (4000) causes an executable to run with the privileges of the file owner rather than the calling user.
Frequently asked questions
What does chmod 755 mean?
What is the Sticky Bit used for?
How do octal permissions add up?
What is SGID on a directory?
Related tools
Regex Builder
Build a regular expression from blocks, with live matches.
CSS Box Shadow Generator
Multi-layer CSS box shadows with live preview and Tailwind export.
Glassmorphism Generator
Create modern CSS frosted glass effects with backdrop blur and border glow.
PX to REM Converter
Convert PX to REM and calculate responsive fluid clamp() typography.