chmod 500 — r-x------

What chmod 500 allows, when to use it, and the calculator pre-filled with it — toggle any box to compare.

500
r-x------
Owner5
r-x
Group0
---
Others0
---
Special bits
chmod 500 filename
chmod -R 500 /path/to/dir

What this means

Owner can read, execute. Group has no permissions. Others has no permissions.

What chmod 500 allows

WhoReadWriteExecute
Owner✓—✓
Group———
Others———

The owner can read and run it, nobody can write — a locked-down script or binary.

Commands

chmod 500 fileset it on one file or directory
chmod u=rx,g=,o= filethe same thing in symbolic form
chmod -R 500 dir/recursively — careful: it applies to files and directories alike
ls -l filecheck the result: -r-x------ (a directory shows dr-x------)

On a directory, read lets you list it, write lets you create and delete entries, and execute lets you enter it and open what's inside. That's why directories usually get 755 or 750 while files get 644 or 640.

Frequently asked

What does chmod 500 mean?

Owner: read, execute. Group: no access. Others: no access. In ls -l it shows as r-x------.

What is the symbolic form of chmod 500?

chmod u=rx,g=,o= file — it sets exactly the same permissions as chmod 500.

← Chmod calculator

Common chmod permissions explained

ToolNinja