Last Updated: February 25, 2016
·
167
· davidodea

Permissions problems with WWW folder through SFTP

If you are having trouble uploading files to your web server with SFTP - it may be a permissions problem.

You need to assign write+read+execute permissions for your user for the www directory.

Here is a fix for the problem:

Navigate (on your server) to the var directory.
Whilst in this directory. enter then following command.

sudo chown -R user:user ./www

Replacing <i>user</i> with the username you want to assign to.

then;

sudo chmod -R 0755 ./www

this line assigns the <i>write+read+execute permissions</i> for the www folder for the user you entered.

All done !