Skip to content
Zesona
Unix Permission CalculatorLocal

Unix Permission Calculator

Convert between octal and symbolic Unix permissions, including setuid, setgid and sticky, with the chmod commands.

  • Free
  • No sign-up
  • Runs in your browser

Input

Runs in your browser

Octal (755, 0644, 4755) or symbolic (rwxr-xr-x). Converts either way.

Ready

Everything happens on this device. No upload, no account, no network request.

How to use this tool

  1. 1

    Enter either an octal mode or a symbolic one; the tool converts in whichever direction is needed.

  2. 2

    The breakdown shows exactly who can do what, and the commands section gives the chmod you need.

  3. 3

    Warnings call out world-writable modes, setuid and the recursive-chmod trap.

Questions about Unix Permission Calculator

Why is 777 a bad idea?

Because it lets every user on the system read, modify and execute the file. It is almost always applied as a workaround for an ownership problem, and it leaves the real problem in place. Fix the owner or group instead - `chown` is usually the command you actually wanted.

What does the sticky bit do?

On a directory, it means only a file’s owner can delete or rename it, regardless of the directory’s write permission. That is why `/tmp` is mode 1777: anyone can create files there, but nobody can delete someone else’s.

Why is setuid dangerous?

A setuid binary runs as its owner rather than the invoking user. A setuid-root program with any exploitable bug hands an attacker root, which is why they are audited heavily and why `find / -perm -4000` is a standard security check.

Why did chmod -R 644 break my directory?

Because a directory needs execute permission to be entered at all - without it you cannot even list what is inside. Apply file and directory modes separately: `find . -type f -exec chmod 644 {} +` and `find . -type d -exec chmod 755 {} +`.

Is my data sent anywhere?

No. This tool runs as JavaScript inside your browser tab. There is no network request carrying your input, nothing is written to a server log, and it keeps working with your connection switched off. You can confirm it in the browser’s network panel. That matters more here than elsewhere on the site: developer tools handle tokens, keys and production data.

Other tools you might reach for next.