FTPD not working properly on jail

krad kraduk at gmail.com
Wed Dec 8 22:24:29 UTC 2010


On 8 December 2010 20:07, Joseph Bashe <joseph.bashe at gmail.com> wrote:

> But he mentioned he needs some sort of 'virtual' (I'm assuming chroot)
> feature; this is not possible with sftp afaik.
> .
>


Its totally possble to chroot the sftp, and I have done it several times.
Something like the below will isolate each user

Match Group sftponly
         ChrootDirectory /home/chroot/%u
         X11Forwarding no
         AllowTcpForwarding no
         ForceCommand internal-sftp


he might need something more like this so they can share data

Match Group sftponly
         ChrootDirectory /home/chroot/
         X11Forwarding no
         AllowTcpForwarding no
         ForceCommand internal-sftp


More information about the freebsd-questions mailing list