Can't access any edit in var/www/ via SFTP

Posted July 21, 2014 6.3k views

How can I access to edit anything in that directory?

Thank you

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
3 answers

You need to allow your user to write to /var/www:

sudo chown -R youruser /var/www

Your way works! I’m sorry.