What is the Chmod Calculator?
Every file on Linux, macOS and other Unix systems has three sets of permissions: for its owner, its group and everyone else. Each set can allow read (r = 4), write (w = 2) and execute (x = 1). Add the numbers in each set to get the familiar octal notation. 7 = 4+2+1 = rwx and 5 = 4+1 = r-x, so 755 means the owner can do everything while the group and others can read and execute.
This chmod calculator converts between checkboxes, octal (644) and symbolic notation (rw-r--r--, as shown by ls -l), and generates the chmod command. It also handles the special bits: setuid (4000), setgid (2000) and the sticky bit (1000), and warns about risky settings such as world-writable files.
How to use the Chmod Calculator
- Tick the permissions you want, type an octal value like
644, or paste the symbolic string fromls -l. - The other two forms update instantly.
- Copy the generated
chmodcommand and replace filename with your file.
Common permissions
| Octal | Symbolic | Typical use |
|---|---|---|
644 | rw-r--r-- | Normal files, web pages, configs |
755 | rwxr-xr-x | Directories, scripts and programs |
600 | rw------- | Private files such as SSH keys and .env files |
700 | rwx------ | Private directories such as ~/.ssh |
777 | rwxrwxrwx | Avoid: anyone can change the file |
Frequently asked questions
What does chmod 755 mean?
The owner can read, write and execute (7). The group and everyone else can read and execute but not modify (5 and 5). It is the standard permission for directories and executable scripts.
Is chmod 777 safe?
Almost never. 777 lets every user on the system change or replace the file, and attackers often exploit it. Fix ownership with chown instead, and use 755 or 775.
What does execute mean for a directory?
For directories, execute (x) means you can enter the directory and access the files inside it. Read (r) only lets you list the names.
Why does SSH reject my private key?
OpenSSH refuses keys that other users can read. Run chmod 600 ~/.ssh/id_ed25519 and chmod 700 ~/.ssh.