Report this

What is the reason for this report?

WinSCP not working correctly

Posted on December 3, 2013

Hi!

I set up my Debian 7.1 droplet according to the tutorials, and created a new user with admin rights. I want to use that user to copy files over with WinSCP, but I get “scp /path permission denied” messages, even after giving that user chown and chmod 777 rights to my /var/www folder.

What should still be set up?

Csaba



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!

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.

What’s the output of: <br><pre>ls -la /var/www</pre>

drwxrwxrwx 2 customuser root 4096 Dec 3 06:56 . <br>drwxr-xr-x 12 root root 4096 Dec 3 06:56 … <br>-rw-r–r-- 1 root root 177 Dec 3 06:56 index.html

Ok, my lack of knowledge… I thought that chown is recursive by default, but it’s not. <br>In order to change ownership of a directory and all of its files, you have to use chown -R. <br>This solved my problem. (Still would be nice to include in the initial server setup tutorial, though :) )

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.