I have a php website which is running on Nginx on Ubuntu using the www-data
user.
I want to add SFTP only access (using ssh key) to a new user, having access to the /var/www/websites/company
I've followed this guide:
https://gist.github.com/lymanlai/3008244
The only difference for me is that the /var/www/websites/company
already exists and it's owned by root
.
I've added a symlink to my web directory, but the paths in PHP are not resolved properly, looks like it's a permission issue (user home dir is outside the web dir).
How do I do this properly including the permission settings?