How to avoid using sudo when working in /var/www?
My webserver folder, called www, cannot be accessed without using root.
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
If you own the computer, you probably can become a root user. You can either use sudo to make yourself root for one command or sudo su to make yourself root until you exit (which you probably don't want to do). The link that siron posted shows some ways that will make it so that you don't have to keep becoming root.