chmod 500 (r-x------)
What chmod 500 does, who gets which permissions, and when to use it — with the exact commands.
| Read (4) | Write (2) | Execute (1) | |
|---|---|---|---|
| Owner | ✔ read | — | ✔ execute |
| Group | — | — | — |
| Others | — | — | — |
Notes
When you'd use 500: Owner can read and execute but not modify — locks a script against accidental edits while keeping it runnable.
Unix permissions are octal digits — owner, group, others — where read=4, write=2, execute=1, summed per digit. An optional leading digit holds setuid (4), setgid (2) and the sticky bit (1). On a directory, "execute" means permission to enter it and reach files inside.
Other values: 400 · 444 · 555 · 600 · 640 · 644 · 664 · 666 · 700 · 711 · 750 · 755 · 770 · 775 · 777 · 1777 · 2755 · 4755
Frequently asked questions
What does chmod 500 mean?
chmod 500 sets the permission r-x------. The owner can read and execute; Group members can do nothing; Everyone else can do nothing.
What is the symbolic notation for chmod 500?
r-x------ — three triplets (owner, group, others) of read/write/execute flags.
How do I apply chmod 500 to a whole directory?
Run chmod -R 500 yourdir to apply it recursively. Be careful: files and directories usually should not share the same mode (directories need execute to be entered, regular files usually should not be executable).