No permissions to website files on LAMP

Posted May 14, 2014 2.1k views
I followed the directions to install LAMP on Ubuntu 12.04 with this link: I have successful connected to sftp using the new user it tells me to create. However, I can not edit, add, or delete any files. Does anyone know what I can do to start working on my website?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer
What files are you trying to edit? If you are trying to add/edit files in /var/www I would suggest adding your user to the www-data group. Run:

sudo usermod -a -G www-data username