Question

SFTP Server says you do not have the required permissions. "Permission denied"

Hello everyone, I’m having problems editing files in my droplet using Fetch, everything was working fine before until today… I’m basically trying to edit my style sheet but it’s not letting me edit it because i apparently don’t have the required permissions. I am able to access and view all my files and copy them to my desktop via Fetch using my SSH key, however i’m unable to delete or edit anything. When i look at the info of the folders, under ownership and permissions it displays that my current user can Read, Write, and Execute. Group: www-data same thing Read, Write, and Execute. Others : Read and Execute.

Any help is appreciated! Thanks.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This question was answered by @EduardoMartinezDesign:

Okay i think i may have fixed my problem… Ran this… sudo chown myuser:www-data /var/www/html/wp-content changed priviledges sudo chown www-data:myuser /var/www/html/wp-content Then… sudo service ssh restart

I feel like I’ve done this before but for some reason it wasn’t working until i ran that in the terminal again, now i’m able to edit and delete files without a window popping up about not having permission.

View the original comment