Security: Standard
chmod 644 β rw-r--r--
Owner can read and write (rw-). Group and Everyone else can only read (r--).
Live Interactive Permission Matrix
Linux chmod Calculator & Generator
Octal Value
644
Symbolic
rw-r--r--
Quick Presets:
Owner (User)
The file creator
Group
Team or service account
Public (Others)
All other system users
Security Assessment
Status: Safe
Target:
chmod 644 deploy.shchmod -R 644 /var/www/deploy.shInteractive Permission Matrix (rwx)
| Role | Read (r - 4) | Write (w - 2) | Execute (x - 1) | Octal Total |
|---|---|---|---|---|
| Owner (User) | 6 | |||
| Group | 4 | |||
| Others (Public) | 4 |
Copyable chmod 644 Commands
Apply to Single File
chmod 644 target_fileApply Recursively to Directory
chmod -R 644 /path/to/folderOnly Apply to Directories (find)
find /path/to/folder -type d -exec chmod 644 {} +Only Apply to Files (find)
find /path/to/folder -type f -exec chmod 644 {} +Recommended Real-World Use Cases
- β’Web assets (HTML, CSS, JS, PNG, SVG)
- β’Source code files (`.py`, `.ts`, `.php`, `.go`)
- β’Configuration files without sensitive passwords
- β’Documentation files (`README.md`, `LICENSE`)
Security Consideration
chmod 644 is the default security standard for all regular files hosted on Linux web servers, including HTML, CSS, JavaScript, images, and PHP scripts. It ensures that the web server process can read and serve the file to visitors, but no external entity can overwrite or execute malicious code.
Frequently Asked Questions
chmod 644 Questions & Answers
Common questions regarding Linux permissions, security risks, and recursive chmod commands.
Owner can read and write (rw-). Group and Everyone else can only read (r--). In symbolic notation, this is represented as "rw-r--r--".