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


_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to