regula.tools
100% Client-SideCalculators

Chmod & POSIX File Permission Calculator

Configure Unix, Linux, and macOS file permissions visually with a 3×3 Owner/Group/Others matrix and Special Mode Bits (SetUID, SetGID, Sticky Bit). Synchronize octal (0755) and symbolic (-rwxr-xr-x) notation bidirectionally, detect world-writable security risks, and copy ready-to-run chmod and find commands.

Loading workspace...

#How to Use This Tool

1Click checkboxes in the POSIX Permission Matrix (Owner, Group, Others) or pick a common preset (0644, 0755, 0600, 1777).
2Optionally toggle SetUID, SetGID, or Sticky Bit under Special Mode Bits, or type an octal/symbolic mode directly.
3Enter your target file or directory path and toggle Recursive (-R) if needed.
4Copy the generated chmod or find command directly into your terminal.

#Mathematical Formula & Standards

Each permission triplet sums binary weights: Read (r) = 4, Write (w) = 2, Execute (x) = 1. Special mode prefix sums SetUID = 4, SetGID = 2, Sticky Bit = 1. Example: rwxr-xr-x = (4+2+1)(4+0+1)(4+0+1) = 755.

#Edge Cases & Technical Considerations

Uppercase S / T vs. Lowercase s / t

When SetUID/SetGID or Sticky Bit is enabled alongside execute permission, ls -l displays lowercase s or t (e.g. rwsr-xr-x). If the underlying execute bit is disabled, it displays uppercase S or T (e.g. rwSr-xr-x).

World-Writable 0777 Risk

Granting Write permission to Others (0777 or 0666) allows any local user or compromised service to overwrite files. Use 0755 for directories/executables and 0644 for standard files instead.

#Frequently Asked Questions

Q:What is the difference between chmod 755 and chmod 644?

755 (rwxr-xr-x) grants read, write, and execute to the owner and read+execute to group/others—standard for directories and scripts. 644 (rw-r--r--) omits execute permission and is standard for regular files and web assets.

Q:When should I use Sticky Bit (1777)?

The Sticky Bit (1xxx) is used on shared directories like /tmp so all users can create files, but only the file owner (or root) can delete or rename their own files.

Q:Are my server paths or commands sent anywhere?

No. All permission math and command generation run 100% locally in your browser.

Have feedback or feature requests?

Help us improve this utility. Share suggestions, report edge cases, or request new features directly.

Send Feedback