Can't access /var/www/nextcloud permission denied?

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

on a fresh install of nextcloudpi rasspberrypi 1.52.4
when ssh to the ncp I cannot enter the /var/www/nextcloud
and trying to sudo su - I have no permission
how can I have the permissions to explore all the folders?
thank you

I use one of the folliwing:

sudo {ls,find} /var/www/nextcloud
sudo bash