Skip to content

Chmod Permissions Builder

Quick Answer

Linux file permissions control who can read, write, or execute each file using three groups — owner, group, and other — represented by bits that combine into octal values like 644 or 755. Setting 777 on a web root lets any compromised PHP script overwrite your application. Setting 644 on a directory breaks navigation because directories need the execute bit to be entered. Converting between octal, symbolic notation like `rwxr-xr-x`, and the exact `chmod` command is where mistakes happen during incident response. This builder presents a permission matrix with Owner, Group, and Others checkboxes. Toggling read, write, and execute updates the octal value, symbolic string, and full `chmod` command live in the output panel. Preset buttons cover 644 for static files, 755 for directories and scripts, and 700 for private executables. Copy the complete command or just the mode. Runs entirely in your browser. Use it before deploying to production or when auditing a server where world-writable files could expose credentials.

How to use the Chmod Permissions Builder

  1. 1Toggle the read, write, and execute checkboxes for Owner, Group, and Others in the permission matrix.
  2. 2The octal value and symbolic string (e.g., 755 = rwxr-xr-x) update live in the output box as you click.
  3. 3Copy the full `chmod 755 filename` command or just the octal value depending on what your script needs.
  4. 4Use the preset buttons for common patterns: web server files (644), directories (755), private scripts (700).

Run this script on a real Linux server

Get $200 free credit — DigitalOcean

Get $200 Free →

Affiliate link · we earn a commission

Need a domain for your next project?

Register with Namecheap — free WHOIS privacy included

Check Domain Prices →

Affiliate link · we earn a commission

PAID RESOURCE — $9

The Production Bash Toolkit

6 scripts + shared library + 52-page field guide. The production layer the free snippets don't cover.

Get the Toolkit →

Frequently Asked Questions

faq — tool

What does chmod 755 mean?

chmod 755 gives the owner full read, write, and execute permissions (7), and gives group and others read and execute but not write (5). It is the standard permission for directories and executable scripts on Linux web servers.

faq — tool

What is the difference between chmod 644 and chmod 755?

chmod 644 gives the owner read and write (no execute), and group and others read only. It is the correct permission for static files like HTML, CSS, and configuration files. chmod 755 adds execute permission, which is required for scripts and directories.

faq — tool

How do I make a bash script executable?

Run `chmod +x script.sh` to add execute permission without changing any other permissions. For a fresh script with no existing permissions, `chmod 755 script.sh` sets the standard owner-executable pattern used for system scripts.

faq — tool

What does the sticky bit do on a directory?

When the sticky bit is set on a directory (chmod +t or mode 1755), only the file owner or root can delete or rename files inside it — even if others have write access to the directory. The /tmp directory uses this to prevent users from deleting each other's temporary files.

Related Snippets