🇪🇸 Cambiar a versión en español: Calculadora de Permisos Linux chmod y umask
Compute POSIX Linux/macOS/Docker file permissions 100% locally inside your browser — zero telemetry or path uploads. Convert between octal (644, 755, 2775) and symbolic (rwxr-xr-x) modes, simulate umask defaults, and flag dangerous chmod 777 or SetUID privilege escalation risks.
Owner (User · u)
Group (g)
Public / Others (o)
Special Permission Bits
Production POSIX Permissions Quick Reference
| Octal | Symbolic | Recommended Server / Container Use Case | Exposure Risk |
|---|---|---|---|
600 | -rw------- | SSH private keys, .env secrets, private TLS keys | Minimal (owner only) |
644 | -rw-r--r-- | Static HTML/JS/CSS and read-only Nginx configs | Low (world-readable) |
750 | -rwxr-x--- | Internal app directories & scripts blocked from others | Hardened |
755 | -rwxr-xr-x | Web root folders and executable CLI binaries | Standard public traverse |
2775 | drwxrwsr-x | Shared Docker/CI directories inheriting group ownership (SGID) | Moderate (group scoped) |
777 | -rwxrwxrwx | NEVER in production: world-writable tampering vector | Critical exposure |
Octal & umask Bitmask Math Formula
•
Octal Digit = (Read × 4) + (Write × 2) + (Execute × 1) for Owner (u), Group (g), and Others (o)•
Special Prefix = (SetUID × 4) + (SetGID × 2) + (Sticky × 1)•
Created Mode = BaseMode AND (NOT umask) — e.g., 0777 & ~022 = 755 directories, 0666 & ~022 = 644 files.
Linux chmod & umask Frequently Asked Questions
Why is running chmod -R 777 to fix Docker or Nginx permission errors dangerous?
World-writable permissions let any unprivileged user or compromised container process overwrite binaries, inject payloads, or alter configs. Instead, align UID/GID via chown and apply 750/640 or group-inherited 2775.
Why do newly created files under umask 022 get 644 instead of 755?
POSIX kernels start regular files with base mode 0666 (no execute bit by default) while directories start at 0777 before applying the bitwise inverse of umask.
Canonical Specifications: Linux chmod(1) man page · GNU Coreutils Mode Structure · POSIX chmod Overview.
100% client-side execution: your directory paths and permission settings never leave your browser.