Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

Thanks

share|improve this question

marked as duplicate by Jorge Castro, jrg 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.

1 Answer 1

up vote 1 down vote accepted

sudo chown -R everydayUser:everyDayUserGroup /var/www

Edit

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.