Bit Breakdown for 700
Owner (7)
4 + 2 + 1 = 7
rwx (Read, Write, Exec)
Group (0)
0 + 0 + 0 = 0
--- (No Access)
Others (0)
0 + 0 + 0 = 0
--- (No Access)
Primary Use Cases for chmod 700
- SSH Directory (~/.ssh): The OpenSSH server and client strictly require that the
~/.sshfolder has mode 700. If group or others have any permissions, SSH will refuse public key logins. - Private Administrative Scripts: Shell scripts containing database migration passwords, API keys, or root commands that only the owner should run.
- Personal Vault Folders: Confidential directories on multi-user servers where other users must not be able to
cdor list files.
Example Commands
// Secure the SSH folder
chmod 700 ~/.ssh
// Protect a private backup script
chmod 700 /opt/scripts/db_backup.sh