Types of permission in Linux (Centos, Redhat, Ubuntu)
Linux having three type of permission as below,
1. Read permission
2. Write permission
3. Execute permission
1. Read Permission:
Read permission give you the authority to open and read a file. Read permission on a directory gives you the ability to lists its content..
r — is represented by reading permission in Linux terms.
2. Write Permission:
Write permission gives you the authority to modify the contents of a file. The write permission on a directory gives you the authority to add, remove and rename files stored in the directory. Consider a scenario where you have to write permission on file but do not have write permission on the directory where the file is stored. You will be able to modify the file contents. But you will not be able to rename, move or remove the file from the directory.
w — is represented by write permission in Linux terms.
3. Execute permission:
Execute permission you cannot run a program unless the execute permission is set. If the execute permission is not set, you might still be able to see/modify the program code(provided read & write permissions are set), but not run it.
x — is represented by executing permission in Linux terms.