Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Aug 2009 19:18:35 +0200
From:      Christer Solskogen <solskogen@carebears.mine.nu>
To:        freebsd-questions@freebsd.org
Subject:   Re: sftp + chrooting users
Message-ID:  <h5n0db$rve$1@ger.gmane.org>
In-Reply-To: <f99a79ec0908090729x54eaa769mfa4b9008bc0421e6@mail.gmail.com>
References:  <f99a79ec0908090729x54eaa769mfa4b9008bc0421e6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/9/09 4:29 PM, Stefan Miklosovic wrote:
> hi all,
>
> I am about chrooting ftp users into theirs home
> directories. I've following in the end of /etc/ssh/sshd_config
>
> Subsystem      sftp   internal-sftp
>
> Match group ftp
>           ChrootDirectory /home
>           X11Forwarding no
>           AllowTcpForwarding no
>           ForceCommand internal-sftp
>

I have this in my sshd_config:
Match Group sftponly
          ChrootDirectory /usr/home/%u
          X11Forwarding no
          AllowTcpForwarding no
          ForceCommand internal-sftp

But also note that the user(which is in the sftponly group) have / as 
his home directory.

-- 
chs





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?h5n0db$rve$1>