chmod 644 (rw-r--r--)

chmod 644 gives the owner read, write permissions, the group read, and everyone else read. Standard for regular files such as HTML, images and config files.

644Octal
-rw-r--r--ls -l (file)
u=rw,g=r,o=rSymbolic chmod

Change bits in the chmod calculator →

Breakdown

ClassDigitSymbolicReadWriteExecute
Owner (u)6rw-✔✔—
Group (g)4r--✔——
Others (o)4r--✔——

owner 6 = 4 + 2 · group 4 = 4 · others 4 = 4

Commands

chmod 644 file.txt
chmod u=rw,g=r,o=r file.txt     # same thing, symbolic
chmod -R 644 folder/        # recursive (careful: applies to files and directories)
find folder -type f -exec chmod 644 {} +   # only files

Applied to a directory

Things to know

Related modes

Frequently asked questions

What does chmod 644 mean?
Owner: rw-, group: r--, others: r--. In ls -l output a file with this mode shows -rw-r--r--.
How do I set 644 with umask?
New files start from 666 and directories from 777, minus the umask. For new directories, umask 133 yields 644. For new files, umask 022 yields 644.