This question already has an answer here:
I have downloaded Apache on Ubuntu by following this tutorial. It installed the Apache nicely and it is running successfully but there is one problem which is a huge one. I do not have permissions to Write to /var/www folder although I am Administrator. The current owner of that
www folder is root. I have installed Ubuntu today so I don't know much about it. I have used
chown command but it throws error : Operation not permitted.
Can anybody tell me so that I can have Read & Write permissions?