Editing config.php using NextCloudPi image

Iā€™ve just started using NextCloud / NextCloudPi and am enamored with it.

Iā€™m trying to setup automatic backups to backblaze b2 following autoizeā€™s tutorial. Iā€™m stuck at step 1. :laughing: When i go to edit /var/www/nextcloud/config/config.php I encounter an error, Permission Denied. Iā€™m logged in as pi.

I thought about mucking around with permissions myself, but Iā€™m highly new to linux and thought better of it. Can someone please help?

Try edit with sudo

That did it! It threw me off that I couldnā€™t even navigate to the pathā€¦ I tried sudo cd to navigate to the path (which apparently isnā€™t a thing), and I guess I never tried sudo when opening it with nano. Thank you!