Kitloft

All tools / chmod reference

chmod 555 (r-xr-xr-x)

Everyone can read and run the file, and nobody can write to it.

chmod 555 in symbolic form
r-xr-xr-x

Who can do what

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

Commands

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

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

Try a different mode

ReadWriteExecuteSpecial
Owner
Group
Others
Octal Symbolic
Command