I installed NextCloud via the Web-installer and found that all files are created using a different user than master with 755 instead of 775 permission. I am unable to modify the config file, such as adding Trusted Domain without sudo. Is there a button to reset application/directory permission to the master user? Thanks for answering.
The way I do it with Wordpress app is go into Application Management
Then select Application Settings
In the General tab at the bottom left is a Reset Permission button. You can try that.
It works like a charm! Thank you Dave3.