On 08/13/2018 10:10 AM, info at smallinnovations dot nl wrote: > On 13-08-18 03:31, mett wrote: >> On Sun, 12 Aug 2018 13:18:23 +0200 >> info at smallinnovations dot nl <[email protected]> wrote: >> [snip] >>> That part of my sshd_config looks like: >>> >>> Subsystem sftp internal-sftp >>> Match group sftponly >>> ChrootDirectory /home/%u >>> X11Forwarding no >>> AllowTcpForwarding no >>> ForceCommand internal-sftp [snip] > BTW I use this configuration combined with a symbolic link from > /var/www/html/website to /home/%u/website. This way it is much safer > then ftp, they cannot login while they still are able to maintain their > own website. Rsync over SSH is another possibility but SFTP looks more > like FTP and is more user friendly. > > Grtz > > Nick
Hmm. symlinks should not work to reach targets outside the chroot. However, if you are on GNU/Linux you can use a bind mount. sudo mkdir www sudo mount --bind /var/www/html/website/ ./www/ It can be made permanent in /etc/fstab too. /Lars _______________________________________________ Dng mailing list [email protected] https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
