---
title: "Chmod Calculator"
description: "Calculate and convert Linux/Unix file permissions between numeric (octal) and symbolic formats. Visual permission grid with common presets and SUID/SGID/Sticky bit support."
url: https://findutils.com/developers/chmod-calculator/
category: developers
---

# Chmod Calculator

Calculate and convert Linux/Unix file permissions between numeric (octal) and symbolic formats. Visual permission grid with common presets and SUID/SGID/Sticky bit support.

**Use this tool:** [Chmod Calculator](https://findutils.com/developers/chmod-calculator/)

## Programmatic access

- REST id `chmod-calculate`: POST https://api.findutils.com/api/tools/chmod-calculate/execute (reference: https://findutils.com/api/chmod-calculate/)
- MCP tool `chmod_calculate` on https://mcp.findutils.com (reference: https://findutils.com/mcp/chmod-calculate/)

## Why Use Our Chmod Calculator?

File permissions are critical for Linux and Unix system security. Our chmod calculator lets you visually set permissions using an intuitive checkbox grid, instantly see the numeric (octal) and symbolic representations, and copy the ready-to-use chmod command. It supports special permissions like SUID, SGID, and Sticky bit, and includes common presets like 644, 755, and 777. Everything runs in your browser — no installation or server upload needed.

## Chmod Tips & Best Practices

- Never use chmod 777 in production. It grants every user full read, write, and execute access, which is a serious security risk. Use 755 for directories and 644 for files as a safe default.
- Use the -R flag (chmod -R 755 /path) to apply permissions recursively to a directory and all its contents. Be cautious -- applying execute permissions to regular files when only directories need them is a common mistake.
- Remember that directories need the execute bit to be traversable. A directory with permissions 644 (no execute) cannot be entered with cd, even if the user can read its contents.
- On shared hosting, set your web root to 750 and files to 640 so that your web server group can read them but other users on the same server cannot access your files at all.
- Use symbolic chmod (chmod u+x script.sh) when you want to add or remove a single permission without affecting the rest. Use numeric chmod (chmod 755 script.sh) when you want to set all permissions at once to a known state.

## Frequently Asked Questions

### What does chmod 644 mean?

chmod 644 sets the file owner to read+write (6), and group and others to read-only (4). In symbolic notation this is rw-r--r--. This is the standard permission for most files.

### What does chmod 755 mean?

chmod 755 gives the owner read+write+execute (7), and group and others read+execute (5). Symbolically: rwxr-xr-x. This is the standard permission for directories and executable scripts.

### What is the SUID bit?

The SUID (Set User ID) bit (4000) makes an executable run with the permissions of the file owner instead of the user running it. Common example: /usr/bin/passwd runs as root to modify /etc/shadow.

### What is the difference between numeric and symbolic chmod?

Numeric chmod uses octal numbers (e.g., chmod 644) to set all permissions at once. Symbolic chmod uses letters (e.g., chmod u+x) to add or remove specific permissions. Both achieve the same result.

### Does the chmod calculator require a signup?

No. This chmod calculator is available with no signup required. All calculations happen in your browser — nothing is uploaded to any server.

### Why is chmod 777 dangerous?

chmod 777 grants read, write, and execute permission to every user on the system. Any user or compromised process can modify or delete the file. On a web server, this means attackers who gain limited access can overwrite your application files. Use 755 for directories and 644 for files as a secure baseline.

### What is the Sticky Bit and when should I use it?

The Sticky Bit (1000, shown as 't' in the others execute position) restricts file deletion in shared directories. When set, only the file owner, directory owner, or root can delete files inside the directory. The most common example is /tmp, which uses permissions 1777 so all users can create temporary files but cannot delete files owned by others.

### How do I make a script executable in Linux?

Run chmod +x script.sh to add execute permission for all users, or chmod u+x script.sh to add it only for the owner. For scripts that should be executable by the owner and readable by everyone else, use chmod 755 script.sh. The script also needs a proper shebang line (#!/bin/bash) at the top.

### What permissions should SSH keys have?

SSH enforces strict permission requirements. Your private key must be chmod 600 (rw-------), the.ssh directory must be chmod 700 (rwx------), and authorized_keys should be chmod 644 (rw-r--r--). If permissions are too open, SSH will refuse to use the key and the connection will fail without a clear error message.

### What does the SGID bit do on a directory?

When SGID (2000) is set on a directory, new files and subdirectories created inside it inherit the directory's group ownership instead of the creating user's primary group. This is essential for collaborative directories where multiple users need to share files under a common group, such as a shared project folder with permissions 2775.

## Related Tools

- [Regex Tester](https://findutils.com/developers/regex-tester/)
- [Unix Timestamp](https://findutils.com/developers/unix-timestamp/)
- [Base64 Encoder](https://findutils.com/developers/base64-encoder/)
- [Cron Expression Generator](https://findutils.com/developers/cron-expression-generator/)
- [Diff Checker](https://findutils.com/text/diff-checker/)
- [Glob Pattern Tester](https://findutils.com/developers/glob-pattern-tester/)
- [Number Base Converter](https://findutils.com/convert/number-base-converter/)
- [cURL to Code](https://findutils.com/developers/curl-to-code/)
