View Full Version : [ubuntu] [SOLVED] No write access rights to /var/www

July 5th, 2008, 07:39 AM
I just installed web server on my ubuntu machine. But it will not give me write access how can I fix this problem?


July 5th, 2008, 07:45 AM
Easiest way imo opinion is to start nautilus in sudo mode, i.e. in a terminal type sudo nautilus
It will prompt for you sudo password. When you right click a folder you can change permissions to write...


July 5th, 2008, 07:50 AM
The directory is owned by root, so you need to use sudo to change permissions.

Or you could move the default "localhost" site elsewhere e.g. to somewhere in your home directory. See the section on virtual hosts in https://help.ubuntu.com/community/ApacheMySQLPHP

July 5th, 2008, 11:11 AM
or you could chown the /var/ww folder

July 5th, 2008, 11:28 AM
You can press Alt+F2, type: gksudo nautilus

Then in nautilus press Ctrl+N for new window into which you copy files.

July 5th, 2008, 11:38 AM
Agree with hyper_ch.. at a terminal:

sudo chown username:group /var/wwwWhere username is your own username.

July 6th, 2008, 05:23 AM
Thank you very much everyone. Now I can get some work done. :D