r - Read
w - Write
x - Execute
u - The owner of the file
g - The group that the file belongs to
o - Anybody who is not one of the above
a - All users
+ - Add permissions
- - Remove permissions
Syntax Structure:
chmod <people><+/-><permissions>
Examples:
chmod o-w: deny others from editing the filechmod u+rwx give the owner full controlchmod +rwx give everyone full controlchmod +x allow anyone to execute the fileNumericals:
chmod 755
Each number represents a different authorisation point…
7: owner5: group5: everyone elseEach item is the total of the following numbers…
4: read2: write1: executeSo 755 means…
7: read, write and execute for the owner5: read and execute for the group5: read and execute for everyone elsechown <user>:<group> <file>