Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
No longer have permission to access files using sftp for sudo user
Hi, I have recently installed wordpress on my lamp running on ubuntu 18.04. I followed this guide https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-18-04
Everything is working in wordpress but now I can’t upload, edit or browse my wordpress folder files using sftp after logging in as sudo user, root is fine though.
Note: I can access and modify files using terminal as sudo user, its just an issue with sftp.
In this tutorial this command is recommended- sudo chown -R www-data:www-data /var/www/etc…
so could it be its only allowing www-data group for such directory? How can I change it so files have access via both sftp, www-data?
Any suggestions would be appreciated.
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.×