500
Octal
r-x------
Symbolic
Safe
Security
What does chmod 500 mean?
chmod 500 gives owner can read and execute. A script or directory only its owner may use, and nobody can modify without changing permissions first.
| Who | Digit | Symbolic | Permissions |
|---|---|---|---|
| Owner (user) | 5 | r-x | read, execute |
| Group | 0 | --- | no access |
| Others | 0 | --- | no access |
Each digit is the sum of read (4), write (2) and execute (1). In ls -l the file shows as -r-x------ and a directory as dr-x------.
How to use chmod 500
# one file or directory
chmod 500 filename
# the same permissions in symbolic form
chmod u=rx,g=,o= filename
# a directory and everything inside it
chmod -R 500 directory/
# only directories (keep files separate)
find path/ -type d -exec chmod 500 {} +
Need a different combination? Tick the boxes in the chmod calculator to get the octal and symbolic values instantly.
Chmod calculatorToggle read, write and execute for owner, group and others to build any permission.
Open the calculator Frequently asked questions
What does chmod 500 do?
It sets the permissions to r-x------: the owner gets read, execute, the group no access and others no access.
What is 500 in symbolic notation?
r-x------, or chmod u=rx,g=,o= as a symbolic chmod command.Is chmod 500 safe?
Yes, 500 does not give write access to other users.