The goal of the post is to give brief information about the types of user for a filesystem and the permission available for a file/directory.
The table below gives numbers for all for permissions types of a File/Directory
Number | Permission Type | Symbol |
---|---|---|
0 | No Permission | — |
1 | Execute | –x |
2 | Write | -w- |
3 | Execute + Write | -wx |
4 | Read | r– |
5 | Read + Execute | r-x |
6 | Read +Write | rw- |
7 | Read + Write +Execute | rwx |
For example 777 permission to /etc folder means the folder has all the read, write and executable permissions for owner,group and all users.
- Owner – The Owner permissions apply only the owner of the file or directory, they will not impact the actions of other users.
- Group – The Group permissions apply only to the group that has been assigned to the file or directory, they will not effect the actions of other users.
- All users – The All Users permissions apply to all other users on the system, this is the permission group that you want to watch the most.