This is a quick alternative tutorial on how to use the permission numbers to chmod a file, it’s pretty much simple addition. Below is an infographic pulled from google.
Press enter or click to view image in full size
rwx permission numbers
Get Ryan Morrison’s stories in your inbox
Join Medium for free to get updates from this writer.
Press enter or click to view image in full size
Currently the file ‘example’ has full permissions of 777 within the user/group/all
Press enter or click to view image in full size
After running the chmod of 444 on the file you can now see that user/group/all has only read permissions rather than read write execute.