Kitloft

All tools / chmod reference

chmod 666 (rw-rw-rw-)

Everyone can read and write. Device files like /dev/null use it; on regular files it is almost always a mistake.

chmod 666 in symbolic form
rw-rw-rw-

Who can do what

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

Commands

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

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

Try a different mode

ReadWriteExecuteSpecial
Owner
Group
Others
Octal Symbolic
Command