Skip to content
/
Suscribirse Subscribe

Detrás del telón hay sistemas, no magia. Arquitectura de software, IA y computación de bajo nivel para las trincheras de producción.

Behind the curtain there are systems, not magic. Software architecture, AI, and systems engineering from the production trenches.

🇪🇸 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

Octal Mode 0755 (755)
Symbolic Notation rwxr-xr-x
Default Creation (umask) Dir 755 · File 644
Security Hygiene Score 80 / 100 Standard
Standard server configuration.

Production POSIX Permissions Quick Reference

Octal Symbolic Recommended Server / Container Use Case Exposure Risk
600-rw-------SSH private keys, .env secrets, private TLS keysMinimal (owner only)
644-rw-r--r--Static HTML/JS/CSS and read-only Nginx configsLow (world-readable)
750-rwxr-x---Internal app directories & scripts blocked from othersHardened
755-rwxr-xr-xWeb root folders and executable CLI binariesStandard public traverse
2775drwxrwsr-xShared Docker/CI directories inheriting group ownership (SGID)Moderate (group scoped)
777-rwxrwxrwxNEVER in production: world-writable tampering vectorCritical exposure

Octal & umask Bitmask Math Formula

POSIX Bitwise Formulas:
• 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.

Suscribirse Subscribe