Be able to create edit and move files to and from /var/www

Posted by Ryan Murphy on Ask Ubuntu See other posts from Ask Ubuntu or by Ryan Murphy
Published on 2012-05-14T21:24:25Z Indexed on 2012/10/01 9:50 UTC
Read the original article Hit count: 459

Filed under:
|
|

I have installed lamp on Ubuntu 12.04.

I try to access /var/www but it doesn't allow me to do anything as it says I don't have permissions.

I have tried:

1.
gksudo nautilus - which works but its very inconvenient way of doing things.

2.
sudo adduser ryan www-data
sudo chown -R www-data:www-data /var/www
sudo chmod g+rw /var/www

The above didn't work.

I have googled and searched this site for a solution, but all the existing possible solutions have not worked.

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about localhost