Linux
Security
DevOps
Unix File Permissions — chmod, chown, and Linux Permission System
Unix file permissions control read, write, and execute access. This guide covers octal notation, chmod, and web server configurations.
Dev Utilities Team
••1 min read
Common permission sets
| Item | Permission | Reason |
|---|---|---|
| Directories | 755 | Owner can write; web server can traverse |
| PHP/HTML files | 644 | Owner can write; web server reads |
| .env / config | 600 | Only owner reads secrets |
| SSH private key | 600 | SSH refuses keys readable by others |
Never use 777 in production — it allows any user on the server to modify your files.
Calculate permissions with our chmod Calculator.
Try These Free Tools
Explore more in this category
Browse Security Tools →