chmod 710
chmod 710 is rwx--x---.
What 710 grants
| Who | Digit | Permissions | Adds up as |
|---|---|---|---|
| Owner | 7 | read, write, execute | 4 + 2 + 1 = 7 |
| Group | 1 | execute | 1 = 1 |
| Others | 0 | no access | 0 |
When 710 is the right answer
Owner has full access; the group may traverse the directory but not list it. This lets a group reach a known path inside without being able to discover what else is there.
The command
chmod 710 filename
chmod -R 710 directory/
Because the owner has the execute bit, this works on a directory as well as a file — on a directory, execute is what grants the right to enter it and reach the entries inside.
How it is written elsewhere
| Octal | 710 |
| Symbolic | rwx--x--- |
As a file in ls -l | -rwx--x--- |
As a directory in ls -l | drwx--x--- |
| Binary | 111 001 000 |
| World-writable | No |
Frequently asked questions
What does chmod 710 mean?
It sets owner to read, write, execute, group to execute, others to no access. In symbolic notation that is rwx--x---.
How do I apply 710?
Run chmod 710 filename. Add -R to apply it to a directory and everything inside, though be careful: a recursive numeric chmod marks every file the same way, which is rarely correct for a mixed tree of files and directories.
Is 710 safe?
It grants no write access outside the owner, so it is a reasonable setting as long as the owner is the account you intend.
What is 710 in symbolic notation?
rwx--x---. Written as ls -l shows it, with a leading file-type character, an ordinary file would appear as -rwx--x--- and a directory as drwx--x---.