Get permission to work with files on my Amazon EC2 Ubuntu server using FTP-WinSCP

W.Doch picture W.Doch · Feb 1, 2015 · Viewed 15.9k times · Source

I have an Ubuntu server on Amazon, I installed everything for working with it (php, mysql, phpmyadmin, apache..), The problem is that I cant move around or edit files using the FTP.

I get the error message:

Permission denied.
Error code: 3
Error message from server: Permission denied

from my WINSCP.

The only way I can trancefer/edit file is using 'putty' with the sudo/nano command.

I found a lot of information about this on google, but there are no updated soulution I can find. Linux isn't my usual work-space.

How do I get the permissions working for the WINSCP ?

Answer

Keith C. picture Keith C. · Dec 7, 2015

A lot of answers say to change permissions on /var/www/ ... however AWS shortcuts out of the WWW folder and into the /var/app/current/ directory. If all else fails try:

sudo chown -R -v ec2-user /var/app/current/