# Permission commands Previously, you explored file permissions and the commands that you can use to display and change them. In this reading, you’ll review these concepts and also focus on an example of how these commands work together when putting the principle of least privilege into practice. ## Reading permissions In Linux, permissions are represented with a 10-character string. Permissions include:
**Character** | **Example** | **Meaning** |
---|---|---|
1st | **d**rwxrwxrwx | file type - d for directory - - for a regular file |
2nd | d**r**wxrwxrwx | read permissions for the user - r if the user has read permissions - - if the user lacks read permissions |
3rd | dr**w**xrwxrwx | write permissions for the user - w if the user has write permissions - - if the user lacks write permissions |
4th | drw**x**rwxrwx | execute permissions for the user - x if the user has execute permissions - - if the user lacks execute permissions |
5th | drwx**r**wxrwx | read permissions for the group - r if the group has read permissions - - if the group lacks read permissions |
6th | drwxr**w**xrwx | write permissions for the group - w if the group has write permissions - - if the group lacks write permissions |
7th | drwxrw**x**rwx | execute permissions for the group - x if the group has execute permissions - - if the group lacks execute permissions |
8th | drwxrwx**r**wx | read permissions for other - r if the other owner type has read permissions - - if the other owner type lacks read permissions |
9th | drwxrwxr**w**x | write permissions for other - w if the other owner type has write permissions - - if the other owner type lacks write permissions |
10th | drwxrwxrw**x** | execute permissions for other - x if the other owner type has execute permissions - - if the other owner type lacks execute permissions |
**Character** | **Description** |
---|---|
u | indicates changes will be made to user permissions |
g | indicates changes will be made to group permissions |
o | indicates changes will be made to other permissions |
+ | adds permissions to the user, group, or other |
- | removes permissions from the user, group, or other |
= | assigns permissions for the user, group, or other |