chmod 700

chmod 700 gives rwx------. Full access for the owner, nothing for anyone else. Private directories such as ~/.ssh and private scripts.

  • Free
  • No Sign-Up
  • Runs in Your Browser

Owner

Group

Others

Permissions

rwx------

Command

chmod 700 file

Chmod Calculator

chmod 700 explained

Octal700
Symbolicrwx------
Ownerread, write, execute
Groupno access
Othersno access
ls -l Shows-rwx------
Commandchmod 700 file
Symbolic Commandchmod u=rwx,g=,o= file

Each digit of 700 is one class of user and adds up read (4), write (2) and execute (1). 7 for the owner is read, write, execute; 0 for the group is no access; 0 for the others is no access.

Full access for the owner, nothing for anyone else. Private directories such as ~/.ssh and private scripts.

On a directory, execute means permission to enter it and reach files inside; read means permission to list it. That is why directories usually have execute wherever they have read.

Questions

What does chmod 700 mean?
Owner: read, write, execute. Group: no access. Others: no access. In letters: rwx------.
Is chmod 700 safe?
Yes, for the uses described here. Nobody outside the classes given write access can change the file.
How do I apply 700 to every directory but not files?
find /path -type d -exec chmod 700 {} + (and use -type f for files only).
How do I set 700 recursively?
chmod -R 700 /path. Be careful: this gives files and directories the same mode, which is rarely what you want; the find command above is safer.

Run servers for other people?

Frabs stops the abuse their VMs send out, and keeps your network off blocklists.