chmod 555 — what r-xr-xr-x means

555 r-xr-xr-x

Everyone can read and execute; nobody can write.

Permission breakdown

When to use 555

Executables or directories that should run for all users but never be modified — useful for hardening system binaries or a directory whose contents must stay fixed.

Set it with chmod

Apply this permission to a file:

chmod 555 filename

Or apply it recursively to a directory and everything inside it:

chmod -R 555 directory/

Other common permissions

Or build any permission with the interactive chmod calculator.