It took me a while to figure out how to install SFTP, and set up a user, sftpwp, that was restricted to it's own home directory and to using only those commands that are internal to SFTP. I created a symbolic link between /var/www in the home directory of user sftpwp.
This is on Ubuntu 12.04. (I don't run the more recent releases of Ubuntu because they don't seem to like the KVM I use to access this machine directly).
Alas, I get the following error when I try to update Wordpress.
Could not copy file.: wordpress/wp-admin/includes/update-core.php
I know SFTP is working, and observed Wordpress' panel saying it successfully downloaded an update file: but then it stopped at the above error.
I tried to get help on the Wordpress forum, but was told that because this is an administrative issue, it was off topic for the Wordpress fora.
So, what might be the problem: restricting the user sftpwp to only what is internal to sftp, or restricting it to it's home directory, or is it some other permissions issue? And, what would be the fix? Please remember, I am not an administrator, but rather a programmer.
Thanks,
Ted
openssh-server
package includes it.www-data
user (the one usually assigned to the web server). So changing the group on the sftp user's home directory towww-data
and making itsetgid
might solve it. You might also have to give group write permissions at some directories.