Linux file permissions

chmod 664 (rw-rw-r--)

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

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

Change any permission with the chmod calculator.

What chmod 664 means

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

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

When to use 664

Files edited by a group, readable by others.

Related permissions

Questions

What does chmod 664 mean?

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

When should I use 664?

Files edited by a group, readable by others.

What is 664 in symbolic form?

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