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
6
Group
Team or service account
4
Public (Others)
All other system users
4
Security Assessment
Status: Safe
View Full chmod 644 Guide β†’
Target:
chmod 644 deploy.sh
chmod -R 644 /var/www/deploy.sh

Interactive Permission Matrix (rwx)

RoleRead (r - 4)Write (w - 2)Execute (x - 1)Octal Total
Owner (User)6
Group4
Others (Public)4

Copyable chmod 644 Commands

Apply to Single File
chmod 644 target_file
Apply Recursively to Directory
chmod -R 644 /path/to/folder
Only 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--".