Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Whats the simplest way to edit and add files to “/var/www”?

Ive installed a LAMP server in my machine, and I would like to edit the files in /var/www/ but I dont want to have to switch to super user everytime.

How can I set the permissions so that I can edit the contents of the folder with my everyday user account?


share|improve this question

marked as duplicate by Jorge Castro, James Apr 7 '12 at 21:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 1 down vote accepted

sudo chown -R everydayUser:everyDayUserGroup /var/www


Actually set the group to the group your browser is using so that it doesn't loose access to it.

share|improve this answer
How do I do that? – Dbugger Apr 3 '12 at 18:52
got it. "sudo usermod -a -G www-data myusername". Thanks. – Dbugger Apr 3 '12 at 19:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.