Owner: read · Group: no access · Others: no access
Change any permission with the chmod calculator.
| Who | Digit | Letters | Can |
|---|---|---|---|
| Owner (user) | 4 | r-- | read |
| Group | 0 | --- | no access |
| Others | 0 | --- | no access |
Each digit is the sum of read (4), write (2) and execute (1).
Read-only for the owner only (e.g. AWS .pem key files).
chmod 400 sets the permissions to r--------: the owner can read, the group can no access and others can no access.
Read-only for the owner only (e.g. AWS .pem key files).
400 is r-------- (shown by ls -l as -r-------- for a file or dr-------- for a folder). The symbolic chmod command is chmod u=r,g=,o= file.