Tools › Chmod permissions › chmod 600

chmod 600 explained (rw-------)

chmod 600 sets the permissions to rw-------.

chmod 600 filename
chmod -R 600 directory/

When to use it

Private keys (~/.ssh/id_ed25519), .env files and other secrets.

Security note

Only the owner can access it. SSH refuses to use a private key that others can read.

Tip: applying it to files and directories separately

Directories need the execute bit to be entered, files usually do not. Set them separately: find dir -type d -exec chmod 755 {} + and find dir -type f -exec chmod 644 {} +.

Other common modes

chmod 777chmod 775chmod 755chmod 750chmod 700chmod 666chmod 664chmod 644chmod 640chmod 444chmod 400
Copied to clipboard