I have resolved this by running the v-rebuild-users and then running:
find /home//web//public_html/* -type d -exec chmod 755 {} ;
find /home//web//public_html/* -type f -exec chmod 644 {} ;
Yes I agree my script was incorrect. I’m glad to finally know what the correct permissions are supposed to be on public_html files and dirs.