Microdeck.tools 100% In-Browser

Unix chmod & umask Permission Calculator

New

Interactive Linux/macOS file permission matrix for Owner, Group, and Others plus special SUID (`4`), SGID (`2`), and Sticky (`1`) bits. Preview real `chmod` commands, symbolic notation, and effective `umask` creation permissions.

100% In-Browser No Server Storage Instant Results
CLI Command
chmod 755 <path>
Scope
Read (4)
Write (2)
Execute (1)
Owner (u)
Group (g)
Others / Public (o)

Special Mode Bits

New Files (666 - umask)644
New Dirs (777 - umask)755
Good least-privilege posture: unprivileged others do not have write access.

Did this tool save you time? Help keep Microdeck free and maintained. Completely optional · From $3.

How It Works Under the Hood

The permission matrix maps three privilege classes (Owner, Group, Others) across Read (`4`), Write (`2`), and Execute (`1`) weights, plus special high-order bits SUID (`4000`), SGID (`2000`), and Sticky (`1000`). Bidirectional parsing lets you edit checkboxes, type octal (`0755` / `4755`), or paste `ls -l` strings (`drwxr-xr-x`) in sync.

Step-by-Step Instructions

1

Toggle the 9 standard R/W/X checkboxes or type an octal value like `644`, `755`, or `4755`, or paste an `ls -l` symbolic string.

2

Enable SUID, SGID, or Sticky Bit under Special Flags if configuring shared directories (`/tmp`-style `1777`) or executables.

3

Review the copy-ready `chmod` command and warning badges for unsafe world-writable `777` permissions.

4

Use the `umask` simulator panel (`022`, `027`, `077`) to see resulting default modes for newly created files (`666 & ~umask`) and directories (`777 & ~umask`).

Key Features & Performance

  • Instant 3-way sync: Checkbox Matrix ↔ Octal (`0755`/`4755`) ↔ Symbolic (`rwxr-xr-x`)
  • Supports Special Bits (`s`, `S`, `t`, `T` case distinction when execute bit is off!)
  • Built-in `umask` effective mode simulator (`File: 666 - umask`, `Dir: 777 - umask` bitwise)
  • Security alerts on dangerous `0777` world-writable or broad SUID configurations
  • Zero external requests — fast cheatsheet presets (`600` SSH key, `644` file, `755` script, `1777` shared temp)

Methodology, Formulas & Technical Standards

Bitwise `umask` masks bits out rather than simple decimal subtraction: `effective = baseMode & (~umask & 0o777)`, which properly handles cases like `umask 001` on files (`0666 & ~0001 = 0666` because files lack initial execute bits).

Common Real-World Use Cases

  • Checking exact SSH private key (`chmod 600 ~/.ssh/id_ed25519`) and `.ssh` directory (`700`) modes
  • Decoding uppercase `S` or `T` flags seen in `ls -l` listings (`rws` vs `rwS`)
  • Configuring secure web-root permissions where deployers and web workers share a group (`027` umask, `2750` / `2770`)
  • Teaching Linux/Unix filesystem permissions cleanly without mental binary math

Worked Examples & Edge Cases

Web Server Static Directory vs SSH Key

Input
Preset: 0755 (Standard Executable/Dir) vs 0600 (SSH Key)
Output
0755 -> rwxr-xr-x (chmod 0755 target) | 0600 -> rw------- (chmod 0600 ~/.ssh/id_ed25519)

`0600` blocks group/other read access as required by OpenSSH.

Sticky Bit on /tmp (1777)

Input
Octal: 1777
Output
Symbolic: rwxrwxrwt | Others can write in directory, but only file owner/root can delete files

Lowercase `t` indicates both Sticky (`1000`) and Other Execute (`0001`) are active.

Limitations, Scope & Accuracy Notes

  • • Models POSIX mode bits (`rwx` + SUID/SGID/Sticky); extended ACLs (`getfacl`/`setfacl`) and macOS/Linux immutable flags (`chattr +i`) are outside standard `chmod` octals.
  • • Symbolic input expects standard 9 or 10 character format (leading file type char `d`/`l`/`-` is stripped safely).

Local Browser Processing & Privacy

Traditional web converters upload your documents, snippets, or media files to remote servers. Unix chmod & umask Permission Calculator runs inside your browser tab:

Processed in This Tab

Your input text and files are processed locally without uploading payloads to a processing server.

No Tool Payload Logging

Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).

Tab Memory Lifecycle

Working outputs stay in your browser tab and are released when you reset the tool or close the tab.

Frequently Asked Questions

Why does `ls -l` sometimes show an uppercase `S` or `T` instead of `s` or `t`?

Lowercase `s`/`t` means the underlying execute (`x`) bit is also set. Uppercase `S`/`T` means the special bit (SUID/SGID/Sticky) is active while the execute bit is turned OFF.

Is `umask` calculation subtraction or bitwise AND-NOT?

Bitwise AND-NOT (`base & ~umask`). For instance, `umask 0111` applied to a `0666` file still results in `0666` (read+write), not `0555`.

Why should I avoid `chmod 777` in production?

`777` allows every local user or compromised service account to overwrite or execute the file. Prefer `750`/`755` for directories/scripts and `640`/`644` for static files.

What does 4 digits in `chmod 0755` mean vs 3 digits `chmod 755`?

The leading fourth digit (`0`–`7`) holds SUID (`4`), SGID (`2`), and Sticky (`1`). Using `0755` explicitly clears any lingering special bits.

Explore Related Micro-Tools

Support Microdeck

Completely optional · From $3 · No account required

Choose an amount (USD):Selected:$5

Minimum support amount is $3 USD.

Completely optional · From $3 · Checkout opens on Gumroad.