Kitloft

All tools / chmod reference

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

The owner can read and write; nobody else has access. The standard mode for SSH private keys, .env files and credentials.

chmod 600 in symbolic form
rw-------

Who can do what

ReadWriteExecute
Owner✓✓–
Group–––
Others–––

Commands

Set the mode
chmod 600 my-file
# same thing in symbolic form:
chmod u=rw,g=,o= my-file

In ls -l output, a file with this mode shows as -rw------- and a directory as drw-------.

Try a different mode

ReadWriteExecuteSpecial
Owner
Group
Others
Octal Symbolic
Command