🔐

Advanced Chmod Calculator

Build Linux and Unix file permissions visually, convert octal and symbolic modes, understand special bits, and generate a ready-to-copy chmod command.

3 & 4-digit octalSpecial permission bitsValidated inputCommand generator

Permission workspace

Toggle access for the file owner, group and everyone else. Results update instantly.

Runs locally
Basic permissions
IdentityRead
4
Write
2
Execute
1
OctalSymbolic
Special permissions

Understand Linux file permissions before changing them

Every file mode contains permissions for the owner, group and others. Read contributes 4, write contributes 2 and execute contributes 1. Adding those values produces each octal digit.

Files commonly use 644

The owner can read and write, while group and others can read.

Directories commonly use 755

Execute on a directory allows traversal; read allows listing its names.

Prefer least privilege

Grant only the access an application or user actually requires.

How to use the calculator

  1. Toggle read, write and execute for each identity, or enter an octal or symbolic mode.
  2. Enable special bits only when their ownership behavior is intentionally required.
  3. Enter a target path and choose recursive or sudo options if appropriate.
  4. Review the security warning before copying and running the command.

Special bit notation

Setuid and setgid replace an execute character with s when execute is enabled, or S when it is not. The sticky bit similarly uses t or T in the final position.

Frequently Asked Questions

Why is chmod 777 usually unsafe?

It grants read, write and execute permission to everyone. This can allow unintended modification or execution, especially on shared or internet-facing systems.

Why do directories need execute permission?

Execute permission allows entering or traversing a directory and accessing entries when their names are known. Read permission controls listing directory contents.

What does chmod -R do?

It changes permissions recursively for a directory and everything beneath it. Use it carefully because files and directories often require different execute permissions.

Does this tool change my server files?

No. It only calculates modes and creates command text in your browser. You decide whether and where to run the generated command.