chmod 700 — what rwx------ means

700 rwx------

The owner can read, write, and execute; the group and others get nothing at all.

Permission breakdown

When to use 700

Common mistakes & gotchas

700 vs the alternatives

Set it with chmod

Apply this permission to a single file:

chmod 700 filename

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

chmod -R 700 directory/

The same thing in symbolic form:

chmod u=rwx,g=,o= filename

Frequently asked questions

What does chmod 700 mean?

chmod 700 sets rwx------: the owner can read, write, and execute (list/enter for a directory); group and others get no access at all. It's the standard 'owner-only' permission for private directories and personal scripts.

Why does SSH require 700 on ~/.ssh?

SSH treats private keys as secrets, so it refuses to use a key directory that other users could read or enter. 700 (and 600 on the key files) guarantees only your account can access them, satisfying SSH's strict-permission check.

Should I use 700 or 600 for a file?

Use 600 for a plain data file you want owner-only — it grants read/write without a meaningless execute bit. Reserve 700 for directories and for scripts the owner actually runs.

Can other users see inside a 700 directory?

No. Without the execute and read bits, group and others can't list the contents or even cd into it. Only the owner (and root) can. This makes 700 a reliable per-user privacy boundary on shared systems.

Other common permissions

Or build any permission with the interactive chmod calculator.