SYSADMIN TOOL

Linux Chmod Calculator

Set Read, Write, and Execute permissions for Owner, Group, and Public on a visual matrix. Prevent security vulnerabilities caused by incorrect permissions.

What are Chmod and File Permissions?

In Linux systems, every file and directory has a 3-level permission structure: **Owner**, **Group**, and **Public**. Chmod (Change Mode) is the command used to manage these permissions.

The Meaning of Numbers (4-2-1)

Linux permissions are math. **Read = 4**, **Write = 2**, **Execute = 1**. For example, to grant both read and write permissions, you calculate 4+2=**6**.

Correct Permissions for WordPress

For security, WordPress folders should generally be **755**, and files should be **644**. Sensitive files like `wp-config.php` should have stricter permissions like **400** or **440**.

Permissions FAQ

What is recursive (R) chmod?
The `-R` flag applies the command to all files and subdirectories within a folder. E.g., `chmod -R 755 /var/www`.
Why shouldn't I use 777?
Permission 777 allows any user on the server to delete or inject malware into that file. Never use 777 as a "quick fix".