SFTP root symlink problem
I have set up a new user with a home directory of /home/username
I have then setup an sftp jail as described here
I then created a symlink via
cd /home/username
ln -s /srv/www/domain.com/public_html
When ssh'd in to the server I can
cd /home/username/public_html
and I can see the files.
If I then try to sftp in to the user I can see an alias to publichtml but when I double click on the alias I get the following error "Could not resolve symlink “publichtml”."
Any ideas?
8 Replies
ln -s /srv/www/domain.com/public_html /public_html
Thanks for taking the time to reply. I removed the symlink I created and followed your instructions and I get the same result as described before
Cheers
chown user:user /home/user/public_html
or
chown user:user /srv/www/domain.com/public_html
@harveyd:
I have been told because it is a jailed sftp i won't be able to symlink out of the jail. I have moved the public_html in to the home folder
Sounds about right, if you're serving clients and letting them sftp into your server it's easier to lock them down to their home directory so stick all their web stuff in there.