Chmod 644 Explained

Chmod 644 is the standard permission for regular files. Owner can read and write; group and others can only read. Essential for web files.

Permission

644

rw-r--r--

chmod 644 filename

Permission Breakdown

RoleRead (4)Write (2)Execute (1)OctalMeaning
Ownerrw-6read, write
Groupr--4read
Othersr--4read

Visual Permission Grid

Read
Write
Execute
Owner
r
w
-
Group
r
-
-
Others
r
-
-

Detailed Explanation

The permission 644 is the most widely used permission for regular files on Unix systems. It grants the owner read and write access while allowing everyone else read-only access.

Octal breakdown:

  • 6 (Owner): read (4) + write (2) = read and write
  • 4 (Group): read (4) only
  • 4 (Others): read (4) only

In symbolic notation this is rw-r--r--. The file owner can view and modify the file. Group members and other users can only read the file contents but cannot change or execute it.

This is the default permission that most text editors and file managers assign when creating new files (assuming a umask of 022). Web servers like Apache and Nginx expect static files (HTML, CSS, JavaScript, images) to have at least 644 so that the server process can read them. It strikes the right balance: the owner can update content, and the web server (running as a different user) can serve it to visitors.

Use Case

Standard permission for HTML files, CSS stylesheets, JavaScript files, images, configuration files, and any regular file on a web server that doesn't need to be executed.

Try It — Interactive Calculator

Customize this permission →