Linux & Sysadmin
Chmod Calculator & Permissions Generator
Interactive Linux file permission calculator. Convert between numeric/octal (755, 644) and symbolic (rwxr-xr-x) notations, generate chmod commands, and explore common file security presets.
Type any octal (e.g. 755, 644, 700) to update the matrix.
-rwxr-xr-x
Permissions Matrix
Owner (User)7
Group5
Others (Public)5
Special Flags (Optional)
Ready-to-Run Shell Command
chmod 755 script.shCommon Linux Permission Presets
How to use
- Step 1: Toggle permissions for Owner (User), Group, and Others using the interactive checkbox grid (Read, Write, Execute).
- Step 2: Or enter an octal number (e.g., 755 or 600) to immediately update the symbolic notation and explanation.
- Step 3: Select a security preset (Web Root, SSH Private Key, Executable Script, Config File) for instant configuration.
- Step 4: Copy the generated chmod command, octal code, or symbolic string directly to your terminal.
Frequently asked questions
What do the numbers in chmod 755 mean?
Each digit corresponds to one entity: the first digit is the Owner (User), the second is the Group, and the third is Others (World). Read = 4, Write = 2, and Execute = 1. Therefore, 7 (4+2+1) means read/write/execute for the owner, while 5 (4+1) grants read and execute permissions to group members and others.
Why does SSH require chmod 600 or chmod 400 for private keys?
OpenSSH enforces strict permission checks on private key files (~/.ssh/id_rsa or *.pem). If permissions are too open (such as 644 where other system users can read the file), ssh will refuse connection with "WARNING: UNPROTECTED PRIVATE KEY FILE!" chmod 600 ensures only your user account can read and write the key.
What is the recommended permission for web root directories and files?
The industry standard practice is chmod 755 (drwxr-xr-x) for directories (allowing web servers like Nginx or Apache to traverse and list assets) and chmod 644 (-rw-r--r--) for static files (allowing the server to read them without granting world-write or execution privileges).
What are SUID, SGID, and the Sticky Bit?
These are special Linux permission bits: SUID (octal 4000) executes the file with owner privileges, SGID (octal 2000) inherits the group ownership for newly created files within a directory, and the Sticky Bit (octal 1000, e.g., /tmp with 1777) prevents users from deleting files owned by others.
The Senior Full-Stack Production Kit (2026)
Checklists, Docker recipes, and SSR error fixes in one dense PDF.