Select Permissions

Read (r)Write (w)Execute (x)
Owner
Group
Public
chmod 755 filename

Common Presets

Chmod Calculator

Calculate and convert Linux file permissions (rwx) to octal and symbolic formats.

How to use the Chmod Calculator

1

Select Permissions

Click the checkboxes to set Read (r), Write (w), and Execute (x) permissions for Owner, Group, and Public.

2

View Formats

Instantly see the result in both Octal (e.g., 755) and Symbolic (e.g., -rwxr-xr-x) formats.

3

Copy Command

Copy the generated `chmod` command to your clipboard and use it in your terminal.

Frequently Asked Questions

What is Chmod?

Chmod (Change Mode) is a command-line utility in Unix and Linux systems used to change the access permissions of file system objects (files and directories).

What do the numbers 7, 5, and 4 mean?

Permissions are represented by numbers: Read = 4, Write = 2, Execute = 1. These are added together. For example, 7 = 4+2+1 (Read+Write+Execute), 5 = 4+1 (Read+Execute), and 4 = Read only.

What is the difference between Octal and Symbolic notation?

Octal notation uses numbers (e.g., 755) to represent permissions, while Symbolic notation uses letters (e.g., rwxr-xr-x). Octal is shorter and often used for setting absolute permissions, while symbolic is more readable.

Is 777 safe to use?

Generally, no. 777 gives read, write, and execute permissions to everyone (Owner, Group, and Public). This is a security risk and should only be used for testing purposes, never in production.

What are the standard permissions for websites?

Typically, directories should be 755 (rwxr-xr-x) and files should be 644 (rw-r--r--). This allows the owner to edit, and the web server (and others) to read them.

What does 'Recursive' mean in chmod?

Using the `-R` flag with chmod applies the permissions to the target directory and all files and subdirectories inside it recursively.

How do I make a script executable?

To make a script executable, you typically give the owner execute permission. The code is `chmod +x script.sh` or `chmod 755 script.sh`.

What is the 'sticky bit'?

The sticky bit is a permission bit that protects the files within a directory. If set, only the file's owner, the directory's owner, or root can delete or rename the files. It's often used on `/tmp`.

Can I use this tool for folders too?

Yes, the permission concepts are the same for files and folders. However, remember that for a folder, 'Execute' allows entering the directory.

Does this tool work on Windows?

This tool generates commands for Unix-like systems (Linux, macOS). Windows uses a different permissions system (ACLs), though WSL (Windows Subsystem for Linux) uses these standard permissions.