Chmod Calculator
Convert Linux file permissions between rwx checkboxes, octal modes and symbolic notation, including setuid, setgid, sticky bit and umask defaults.
Convert Linux/Unix permissions between checkboxes, octal and symbolic notation. Includes setuid, setgid, sticky bit, chmod commands, common presets and a umask-to-default-permissions calculator.
Permission result
Umask calculator
Use this chmod calculator to convert Linux and Unix file permissions between an interactive read/write/execute grid, octal notation such as 755 or 0644, and symbolic notation such as rwxr-xr-x. The tool also supports setuid, setgid and the sticky bit, generates ready-to-review chmod commands, and includes a separate umask calculator for default file and directory permissions.
Linux chmod calculator: how permission numbers work
Each permission class—owner, group and others—has three basic bits. Read is worth 4, write is worth 2 and execute/search is worth 1. Add the enabled values to produce one octal digit:
| Permission | Value |
|---|---|
| Read (r) | 4 |
| Write (w) | 2 |
| Execute/search (x) | 1 |
For example, owner rwx is 4 + 2 + 1 = 7, group r-x is 4 + 1 = 5, and others r-x is also 5. Together they form 755.
Octal to symbolic permission conversion
The calculator works in both directions. Enter 644 and it produces rw-r--r--. Enter rwxr-x--- and it produces 750. You can also paste the first permission field from ls -l, including a leading file-type character such as -rw-r--r-- or drwxrwsr-x.
GNU chmod accepts either an octal mode representing the complete permission bit pattern or symbolic operations such as u+x, g-w and o=. This calculator’s generated symbolic assignment uses the explicit u=...,g=...,o=... form so the intended final state is easy to audit.
Common chmod permissions
| Mode | Symbolic | Typical use |
|---|---|---|
| 644 | rw-r–r– | Common non-executable file: owner can edit, everyone can read. |
| 755 | rwxr-xr-x | Common executable/script or public directory. |
| 600 | rw——- | Private file readable/writable only by owner. |
| 700 | rwx—— | Private directory or executable for owner only. |
| 640 | rw-r—– | Owner read/write, group read, no access for others. |
| 775 | rwxrwxr-x | Group-writable directory or collaborative tree when group setup is correct. |
| 1777 | rwxrwxrwt | World-writable directory with sticky bit, as commonly used for /tmp. |
These are examples, not universal recommendations. The correct permissions depend on who must read, modify, execute or traverse the object.
Special permission bits: setuid, setgid and sticky
Linux file mode includes three special bits in addition to the nine ordinary permissions. In a four-digit octal mode, setuid contributes 4 to the leading digit, setgid contributes 2 and sticky contributes 1.
- setuid (4000): on an executable, requests execution with the file owner’s effective user ID, subject to operating-system and filesystem rules.
- setgid (2000): on an executable, requests the file group’s effective group ID. On directories, it commonly causes newly created entries to inherit the directory’s group.
- sticky (1000): on a directory, restricts deletion/renaming so unprivileged users cannot remove another user’s files merely because the directory itself is writable.
Symbolic output uses lowercase s or t when execute is also set and uppercase S or T when the special bit is set but the corresponding execute/search bit is not.
chmod calculator online command output
After you set the permissions, the calculator generates both numeric and symbolic commands using the target path you enter. For mode 755, for example:
chmod 755 path/to/file
chmod u=rwx,g=rx,o=rx path/to/file
Always quote or escape paths appropriately in a real shell when they contain spaces or shell metacharacters.
Recursive chmod: use extra care
chmod -R changes an entire directory tree. Applying the same mode to every object is often wrong because regular files frequently should not become executable just because directories need execute/search permission. GNU coreutils also documents special symlink traversal behavior for recursive operations.
A common administrative pattern is to set directories and files separately with find, for example directories to 755 and ordinary files to 644. Whether those exact modes are appropriate depends on the application, owner/group model and deployment environment.
Umask calculator for Linux default permissions
For the ordinary permission bits, a process commonly starts from a maximum of 666 for a new regular file and 777 for a new directory, then the umask removes disallowed bits. A umask of 022 therefore produces typical defaults of 644 for files and 755 for directories. A umask of 077 produces 600 files and 700 directories.
The actual program can request stricter permissions, so umask sets an upper bound rather than forcing every application to create objects at exactly those modes.
Security warnings for chmod 777 and setuid
Mode 777 grants read, write and execute/search permission to owner, group and everyone else. On a shared or network-accessible system, making files or directories world-writable can create serious integrity or privilege problems. Likewise, setuid and setgid executables deserve careful review because their security impact is much larger than ordinary read/write bits.
Frequently asked questions
What does chmod 755 mean?
Owner receives read, write and execute; group receives read and execute; others receive read and execute. Symbolically that is rwxr-xr-x.
What does chmod 644 mean?
Owner receives read/write, while group and others receive read only: rw-r--r--.
What does chmod 600 mean?
Only the owner can read or write the file; group and others have no ordinary permissions.
Is chmod 777 safe?
It is usually broader than necessary. It gives everyone write access as well as read and execute/search access. Use the narrowest permissions that satisfy the actual requirement.
What is the difference between chmod 755 and 775?
775 adds group write permission. It can be useful for controlled collaborative directories when group ownership and setgid behavior are configured intentionally.
Does execute mean the same thing on files and directories?
No. On a regular executable file, x permits execution subject to other system rules. On a directory, x is the search/traverse permission needed to access entries within it.
Can this chmod calculator Linux tool parse special bits?
Yes. It supports four-digit modes and the s/S/t/T symbolic forms associated with setuid, setgid and sticky permissions.
Is this a Linux chmod calculator only?
The model is the traditional Unix/POSIX-style permission system used by Linux and many Unix-like systems. Exact filesystem, ACL, SELinux/AppArmor and platform behavior can add controls beyond these mode bits.
Methodology and sources
The conversion follows the permission-bit definitions documented by the Linux chmod(2) system call and GNU coreutils. GNU documents symbolic mode syntax as [ugoa...][-+=]perms and separately documents setuid, setgid, sticky-bit and recursive behavior. This tool converts the basic mode bits only; ACLs, SELinux labels, capabilities, ownership and mount options are separate security mechanisms.