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

July 21, 2014 5.7k views

How can I access to edit anything in that directory?

Thank you

3 Answers

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

sudo chown -R youruser /var/www
  • So, does that mean that if my user is “root” - I can do “sudo chown -R root /var/www” ?
    When I did it, nothing happened

  • Sorry, I didn’t know you configured OpenSSH to chroot your user in the home directory.

    I’m glad it’s working now!

Your way works! I’m sorry.

Have another answer? Share your knowledge.