From owner-freebsd-questions@FreeBSD.ORG Tue Apr 10 15:28:36 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1378116A400 for ; Tue, 10 Apr 2007 15:28:36 +0000 (UTC) (envelope-from thiago@lamce.coppe.ufrj.edu.br) Received: from lamce.coppe.ufrj.br (anubis.lamce.coppe.ufrj.br [146.164.92.1]) by mx1.freebsd.org (Postfix) with ESMTP id C8EA413C44C for ; Tue, 10 Apr 2007 15:28:32 +0000 (UTC) (envelope-from thiago@lamce.coppe.ufrj.edu.br) Received: from www.lamce.coppe.ufrj.br (anubis.lamce.coppe.ufrj.br [146.164.92.1]) by lamce.coppe.ufrj.br (Postfix) with ESMTP id 1B83820B447 for ; Tue, 10 Apr 2007 12:28:28 -0300 (BRT) Received: from 146.164.92.1 (SquirrelMail authenticated user thiago) by www.lamce.coppe.ufrj.br with HTTP; Tue, 10 Apr 2007 12:28:28 -0300 (BRT) Message-ID: <63726.146.164.92.1.1176218908.squirrel@www.lamce.coppe.ufrj.br> Date: Tue, 10 Apr 2007 12:28:28 -0300 (BRT) From: "Thiago Esteves de Oliveira" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Chroot/jail mechanism in ssh and sftp connections X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 15:28:36 -0000 Hello, I want to use the chroot/jail mechanism in user's ssh and sftp connections. I've read some tutorials and possible solutions to jail/chroot the users into their own home directories. One is to install the openssh-portable(with chroot option turned on) from the ports collection. I've installed the openssh-portable, but the jail/chroot mechanism didn't work. I think it requires some configuration in its sshd_config file, but I'm not sure because I have found nothing about jail/chroot in the openssh(sshd_config) man pages.