SFTP Network Share PointerBy Dag, on December 30th, 2016
A normal symbolic link won't work in a chrooted env. But mount --bind will.
Let's say you've already mounted a windows share outside of chroot:
mount -t cifs -o username=u,password=p,uid=n,gid=n //server/share /mountpoint
Then you can access it from a user SFTP client/connection with:
mkdir /home/user/my-mountpoint mount --bind /mountpoint /home/user/my-mountpoint
Or just mount a share directly. I run a chmod 700 runlevel script for reboot consistency. Now I can access and download/upload files through SFTP to my Windows network share.