How to avoid using sudo when working in /var/www?
My webserver folder, called www, cannot be accessed without using root.
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.