Linux file and Directory permissions interpretation
How to set permissions for Linxu files and directories
Character notation
1) Ls-l: View permissions for all files in the directory
2 chmod u=r File: Assign the current (user user) permissions of the file to writable mode
3 chmod g=wrx File: Assigns the current (group GRUOP) permissions of the file files to writable, readable, executable mode
4 chmod g-x file: Subtract the current (group) permissions of a file from the executable mode
5 chmod o+w File: Add the current (all other) permissions of the file to the writable mode
6 chmod a-x file: minus the write mode for the current (user), (group), (all other) permissions of the file
7 chmod 777 File: Sets the current (user users), (group), (all other) permissions of the file to a readable writable executable mode
8) chmod-r 777 file: Sets the permissions of all files and folders in the file directory to the current (user users), (group), (all others) in a recursive manner, to the readable writable executable mode
Note:
If the Execute Modify permission appears Operation not permitted please add sudo chmod-r 777 file before the command
Thank you for reading, I hope to help you, thank you for your support for this site!