Octal Modes

To construct each octal digit, add the value of each permission that you want to grant:

For example, 7 which provides read, write, and execute permissions because 4+2+1=7.