Back to Blog
DeveloperFebruary 12, 202611 min read

Linux File Permissions Explained: The Visual Chmod Guide

Master Linux file permissions with this visual guide. Learn chmod notation, permission types, common permission sets, and use our interactive calculator.

What are File Permissions?

Every file and directory on a Linux or Unix system has three sets of permissions that control who can read, write, and execute that file. These permissions are assigned to three categories: the owner of the file, the group the file belongs to, and everyone else (others).

Understanding file permissions is essential for server administration, deploying web applications, and managing any Linux-based system. Incorrect permissions are one of the most common causes of permission denied errors.

The Three Permission Types

PermissionSymbolNumberWhat It Means
Readr4View file contents or list directory contents
Writew2Modify file contents or add/remove files in directory
Executex1Run the file as a program or enter the directory

How Octal Notation Works

chmod 755 myfile.txt
      ^^^
      ||| Others: 5 (read + execute)
      || Group:  5 (read + execute)
      | Owner:  7 (read + write + execute)
NumberPermissionsMeaning
0---No permissions
1--xExecute only
2-w-Write only
3-wxWrite and execute
4r--Read only
5r-xRead and execute
6rw-Read and write
7rwxRead, write, and execute

Most Common Permission Sets

ChmodSymbolicUse Case
644rw-r--r--Regular files (HTML, CSS, images)
755rwxr-xr-xDirectories and scripts
600rw-------Private files (SSH keys, .env)
700rwx------Private directories
777rwxrwxrwxFull access (avoid in production)

Useful Chmod Commands

# Make a script executable
chmod +x deploy.sh

# Standard web file permissions
chmod 644 index.html
chmod 644 style.css

# Standard directory permissions
chmod 755 public/

# Protect sensitive files
chmod 600 .env
chmod 600 ~/.ssh/id_rsa

# Recursive permissions
chmod -R 755 /var/www/mysite/
find /var/www/mysite/ -type f -exec chmod 644 {} \;

Calculate Permissions Visually

Our interactive Chmod Calculator lets you toggle checkboxes for each permission and see the octal number, symbolic notation, and chmod command in real time.

Free Chmod Calculator

Calculate Linux file permissions with interactive toggles. Get the octal code and command instantly.

Try it free

Related articles