High Sierra permissions failing to modify recursively via Terminal
The letter used in the terminal command must be a capital "R", not a lower-case "r".

e.g. use:

    sudo chmod -R 777 [dir]


not:

    sudo chmod -r 777 [dir]