I am experimenting with moving Documents and Desktop into iCloud Drive. I have a website document root in a folder under Documents. For the website to run on my local machine the permissions of ~/Documents folder must be 755.
As soon as I change a file in the website, the permissions on ~/Documents immediately changes from 755 to 700, causing the website to give a "Forbidden" message.
I am guessing that the iCloud sync function is resetting the permission of ~/Documents. How do i prevent this from happening?
I have tried "chflags uchg Documents", but it still resets to 700.