Kitloft

All tools / chmod reference

chmod 664 (rw-rw-r--)

The owner and group can read and write, and others can read. The default for new files when the umask is 002.

chmod 664 in symbolic form
rw-rw-r--

Who can do what

ReadWriteExecute
Owner✓✓–
Group✓✓–
Others✓––

Commands

Set the mode
chmod 664 my-file
# same thing in symbolic form:
chmod u=rw,g=rw,o=r my-file

In ls -l output, a file with this mode shows as -rw-rw-r-- and a directory as drw-rw-r--.

Try a different mode

ReadWriteExecuteSpecial
Owner
Group
Others
Octal Symbolic
Command