Files Permission
Files Permission
The chmod command in a terminal is used to change the permissions of files and
directories
-R: Applies the permission changes recursively to directories and their contents.
Permission
-: No permission
r: Read permission.
w: Write permission.
x: Execute permission.
To specify permissions in octal notation, you use a three-digit number where each
digit represents the permissions for the owner, group, and other users,
respectively. Each digit is a sum of the following values:
0: No permission
4: Read permission.
2: Write permission.
1: Execute permission.
6 = 4 + 2
5 = 4 + 1
7 = 4 + 2 + 1
3 = 1 + 2