Kitloft

All tools / chmod reference

chmod 444 (r--r--r--)

Read-only for everyone. Useful for files that nobody, including the owner, should change by accident.

chmod 444 in symbolic form
r--r--r--

Who can do what

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

Commands

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

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

Try a different mode

ReadWriteExecuteSpecial
Owner
Group
Others
Octal Symbolic
Command