chmod 644

chmod 644 gives rw-r--r--. The owner reads and writes; everyone else reads. The default for ordinary files: web pages, configuration, documents.

  • Free
  • No Sign-Up
  • Runs in Your Browser

Owner

Group

Others

Permissions

rw-r--r--

Command

chmod 644 file

Chmod Calculator

chmod 644 explained

Octal644
Symbolicrw-r--r--
Ownerread, write
Groupread
Othersread
ls -l Shows-rw-r--r--
Commandchmod 644 file
Symbolic Commandchmod u=rw,g=r,o=r file

Each digit of 644 is one class of user and adds up read (4), write (2) and execute (1). 6 for the owner is read, write; 4 for the group is read; 4 for the others is read.

The owner reads and writes; everyone else reads. The default for ordinary files: web pages, configuration, documents.

On a directory, execute means permission to enter it and reach files inside; read means permission to list it. That is why directories usually have execute wherever they have read.

Questions

What does chmod 644 mean?
Owner: read, write. Group: read. Others: read. In letters: rw-r--r--.
Is chmod 644 safe?
Yes, for the uses described here. Nobody outside the classes given write access can change the file.
How do I apply 644 to every directory but not files?
find /path -type d -exec chmod 644 {} + (and use -type f for files only).
How do I set 644 recursively?
chmod -R 644 /path. Be careful: this gives files and directories the same mode, which is rarely what you want; the find command above is safer.

Run servers for other people?

Frabs stops the abuse their VMs send out, and keeps your network off blocklists.