Permissions to copy files

Hello everyone, i have setup LAMP in Ubuntu 13.10, but i can´t copy or delete any file over any SFTP client, what can i do to resolve this?

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.

Anyway i have been messing around with this and ended up creating a new user in a new group to only access the html folder to be able to access it via SFTP and its working fine. <br>Thanks everyone for your help and time.

Thanks for linking that topic, helped alot in understanding the permissions system. <br>I switched to ngnix web server and in the nginx.conf the default permissions are assigned to www-data group. <br>If i use a user that is in the www-data group ill have permissions to access the web root right? <br>If so, is it secure too add the user that i created with root permissions to the www-data group or should i create another user just to use it to connect via SFTP, assigned to the www-data group?

You need to make sure that your user has write access to whatever folder you want that user to be able to modify files. Check out <a href=“”>Linux Permissions Basics and How to Use Umask on a VPS</a>.