File permissions · modechmod 600 — rw-------
What chmod 600 (rw-------) means, who is allowed to do what, and when these permissions are used: a private file: an SSH key, .env, a token.
Open in the calculator01
What breaks
02
Easily confused with
700rwx------
the directory counterpart: the key itself 600, the ~/.ssh directory around it 700.
chmod 700 →03
Commands for this case
chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa
the correct pair for a key: the directory first, then the key itself
chmod 600 .env
the same for a file holding passwords and tokens
Work out other permissions
The calculator opens on this mode: checkboxes, octal and symbolic notation, an ls -l line and the ready command.
Updated