Linux file permissions

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

Owner: read, write · Group: no access · Others: no access

600numeric
rw-------symbolic
6 · 0 · 0owner · group · others
Commands
chmod 600 filename chmod u=rw,g=,o= filename chmod -R 600 folder/ # apply to a folder and everything in it

Change any permission with the chmod calculator.

What chmod 600 means

WhoDigitLettersCan
Owner (user)6rw-read, write
Group0---no access
Others0---no access

Each digit is the sum of read (4), write (2) and execute (1).

When to use 600

Private files: SSH private keys, .env files, credentials.

Related permissions

Questions

What does chmod 600 mean?

chmod 600 sets the permissions to rw-------: the owner can read, write, the group can no access and others can no access.

When should I use 600?

Private files: SSH private keys, .env files, credentials.

What is 600 in symbolic form?

600 is rw------- (shown by ls -l as -rw------- for a file or drw------- for a folder). The symbolic chmod command is chmod u=rw,g=,o= file.