Linux file permissions

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

Owner: read, write · Group: read · Others: read

644numeric
rw-r--r--symbolic
6 · 4 · 4owner · group · others
Commands
chmod 644 filename chmod u=rw,g=r,o=r filename chmod -R 644 folder/ # apply to a folder and everything in it

Change any permission with the chmod calculator.

What chmod 644 means

WhoDigitLettersCan
Owner (user)6rw-read, write
Group4r--read
Others4r--read

Each digit is the sum of read (4), write (2) and execute (1).

When to use 644

Normal files on a web server (HTML, CSS, images, config the server only reads).

Related permissions

Questions

What does chmod 644 mean?

chmod 644 sets the permissions to rw-r--r--: the owner can read, write, the group can read and others can read.

When should I use 644?

Normal files on a web server (HTML, CSS, images, config the server only reads).

What is 644 in symbolic form?

644 is rw-r--r-- (shown by ls -l as -rw-r--r-- for a file or drw-r--r-- for a folder). The symbolic chmod command is chmod u=rw,g=r,o=r file.