By juancho
I just created a droplet Ubuntu LAMP on 14.04. I am trying to change index.html via filezilla in sftp://miusuario@mydomian.co/var/www/html/index.html Howevere, when I upload my index.hmtl I get the error Error: /var/www/html/index.html: open for write: permission denied. I am following this tutorial: https://www.digitalocean.com/community/tutorials/how-to-use-filezilla-to-transfer-and-manage-files-securely-on-your-vps and everything worked fine until this point. What should I do? I also granted the permissions to “miusuario” suggested in this Tutorial: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-12-04 so I added the lines in visudo:
miusuario ALL=(ALL:ALL) ALL
Thanks in advance
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
If you want to be able to edit the file directly using Filezilla over SFTP, you’ll need to add your user to the www-data group and allow all members of that group to edit files. Run:
sudo usermod -a -G www-data foo
sudo chown -R www-data:www-data /var/www/html/
sudo chmod -R g+rw /var/www/html/
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.