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?
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.
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=“https://digitalocean.com/community/articles/linux-permissions-basics-and-how-to-use-umask-on-a-vps”>Linux Permissions Basics and How to Use Umask on a VPS</a>.
Thanks for your help Kamal, im using a user that i created since i disabled root access via ssh, the folder is the default web root /var/www/.
What user are you connecting as and what directory are you trying to write to?