Skip to main contentSkip to navigationSkip to searchSkip to footer

Chmod Calculator: Linux File Permissions — 644, 755, 777 Explained (2026)

Use the free chmod calculator to set Linux file permissions. Covers octal and symbolic notation, 644, 755, 777, and common presets with ready-to-copy commands.

NextUtils Team
7 min read
🛠️Tools Guide
chmodlinuxfile-permissionsunixdeveloper-tools

Quick Answer

A chmod calculator converts Linux file permission settings into the octal codes (like 644 or 755) used by the chmod command. Set read, write, and execute permissions for owner, group, and others — the calculator outputs the octal value and the exact chmod command to copy into your terminal.

Chmod Calculator — Free

Toggle permission checkboxes and get the octal code, symbolic notation, and ready-to-copy chmod command instantly.

Open Chmod Calculator →

Every file on a Linux or Unix system has a set of permissions that control who can read it, write to it, or execute it — and those permissions apply separately to the file owner, the owner's group, and everyone else. The chmod command sets these permissions using either a three-digit octal number (like 755) or symbolic notation (like u+x). Getting the number wrong means either locking yourself out of a file or leaving it dangerously open.

This guide explains how the octal system works, what the most common chmod values mean, when to use each one, and how to use the calculator above to generate the right command without mental arithmetic.

What Is chmod?

chmod stands for change mode. It is a Unix command that modifies the read, write, and execute permissions of a file or directory. Permissions are assigned to three classes of users:

ClassSymbolWho it covers
OwneruThe user who owns the file
GroupgUsers in the file's assigned group
OthersoEveryone else on the system

Each class gets three permission bits: r (read = 4), w (write = 2), and x (execute = 1). The octal digit for each class is the sum of the bits that are switched on.

The Octal Permission System — 4, 2, 1 Explained

Each permission is a power of 2. Add together the values of the permissions you want for a class to get its octal digit:

PermissionSymbolValueWhat it allows
Readr4View file contents; list directory contents
Writew2Modify file contents; create/delete files in a directory
Executex1Run file as a program; enter a directory (cd)
None-0No access

A three-digit octal code represents owner, group, and others in that order. For example, 755 breaks down as:

DigitClassCalculationPermissionsSymbolic
7Owner4+2+1Read, write, executerwx
5Group4+0+1Read, executer-x
5Others4+0+1Read, executer-x

Combined symbolic notation for 755: rwxr-xr-x. The chmod calculator does this arithmetic for you — check a box and the octal updates instantly.

Common chmod Values and When to Use Them

These are the permission presets built into the calculator, covering the most common real-world scenarios for files, directories, and security-sensitive paths.

OctalSymbolicLabelUse case
644rw-r--r--Regular fileHTML, config, text files — owner edits, others read
755rwxr-xr-xExecutable / DirScripts, binaries, directories — others can enter and run
664rw-rw-r--Group editable fileShared project files where the group needs write access
600rw-------Private fileSSH keys, credentials — only owner can read or write
700rwx------Private directoryOnly owner has any access to the directory
400r--------Owner read onlyImmutable config files, certificates
750rwxr-x---Group access dirOwner full access, group can read and enter, others locked out
775rwxrwxr-xGroup writable dirShared directories where the group needs to create files
711rwx--x--xTraversal only dirOthers can enter the directory but not list its contents
444r--r--r--Read-only for allShared read-only resources, documentation
777rwxrwxrwxFull accessAvoid on servers — everyone can modify or delete

Note: Never use 777 on a production server. If a web server process is compromised, 777 permissions let an attacker overwrite any file in that directory. Use 755 for directories and 644 for files as your safe defaults.

Symbolic vs Octal Notation

Both notations set the same permissions — they just express them differently. Octal sets an absolute permission mask; symbolic adds or removes individual bits.

GoalOctal commandSymbolic commandNote
Make script executablechmod 755 script.shchmod +x script.shSymbolic +x is shorter but adds execute for all
Lock down a private keychmod 600 id_rsachmod u=rw,go= id_rsaOctal is cleaner here
Standard web filechmod 644 index.htmlchmod u=rw,go=r fileEither works; octal is conventional
Remove write for groupchmod 644 filechmod g-w fileSymbolic is better for targeted changes
Full private directorychmod 700 dir/chmod u=rwx,go= dir/Octal is simpler

Tip: Use octal when setting permissions from scratch (it defines all three classes at once). Use symbolic when making targeted changes to existing permissions without touching the other bits.

Special Permission Bits: setuid, setgid, Sticky Bit

A fourth octal digit (placed before the three standard digits) controls three special bits. The calculator exposes these as checkboxes — they are rarely needed but important to understand.

BitValueExampleEffect
setuid40004755 (rwsr-xr-x)Executable runs with the file owner's privileges, not the caller's. Used by /usr/bin/passwd to write /etc/shadow.
setgid20002755 (rwxr-sr-x)On executables: runs with group privileges. On directories: new files inherit the directory's group instead of the creator's.
sticky10001777 (rwxrwxrwt)On directories: users can only delete their own files. Used on /tmp and shared upload directories.

chmod vs chown — Permissions vs Ownership

These two commands are frequently confused but do completely different things:

CommandControlsExampleResult
chmodWhat actions are allowedchmod 644 file.txtOwner can read/write; group and others can only read
chownWho owns the filechown alice:dev file.txtalice becomes owner; dev becomes the group

Open Chmod Calculator — Free

Click the permissions you need and copy the ready-made chmod command — no arithmetic required.

Open Chmod Calculator →

Try These Free Tools

Share this article

Related Articles

Continue exploring with these related posts

Ready to try our tools?

Explore our collection of free online tools for developers, designers, and power users.

Explore All Tools

Explore More Tools

Discover our collection of free online tools for developers, designers, and power users

🛠️

Utilities