Editing Files when installed with snap

I am having a few issues with my install. I used snap to run the install. 2 directories were created one under /snap/nextcloud and the other under /var/snap/nextcloud. I can edit the /var files but not /snap files. I assume the ones being used are under /snap. I attempted to edit the /var/snap config.php to add internet access but it was ignored. I try to edit files under the snap folder and I am denied. How do you configure or change the configuration of the files under the snap folder? I have tried as root too and its a no go.