7
0
I'm new to Linux and I'm trying to setup a small testing server inside of a VM running Ubuntu Server. I've found the /var/www folder and it should be the one where my Apache documents are stored, in fact if I access my VM's IP I see the index.html page that's stored there.
My problem is that I can't write to that folder.
ls -l
returns:
d-w-r-xr-x 2 root root 4096 2011-12-28 16:08 ./
drwxr-xr-x 13 root root 4096 2011-12-28 17:02 ../
-rw-r--r-- 1 root root 177 2011-12-28 16:08 index.html
My user is called gab
.
What's the best thing to do when dealing with this folder to allow myself to edit and create files here? Should I create a new group or set myself as the owner of the folder?
If you're worried about someone else having access to the server, you can always just sudo whenever you need to copy files to that directory. – kobaltz – 2011-12-28T19:09:52.147
oh, and the -R is used as a recursive, making the directory and it's contents owned by and permissions set to. – kobaltz – 2011-12-28T19:10:36.590