From owner-freebsd-questions@FreeBSD.ORG Sun May 11 16:50:52 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0400A402 for ; Sun, 11 May 2014 16:50:52 +0000 (UTC) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 90CBF21CB for ; Sun, 11 May 2014 16:50:51 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id hm4so3390311wib.16 for ; Sun, 11 May 2014 09:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mwxL7UpNBqyL8lPsDe2AXwnVvKIi3BlPpB7crgg4bKo=; b=fYi1Vrasd/j0eVkHq7N2wtiDtdCnJLstC5BBUhI8JH+ZnbW74MvYii9Qq2dpdk7ZCX ch5KxxSyBlyf5Ab77B+8zKshabBrh/TPXarzYfdhTCAgaQ+XWVlDHOzS+T2SwxeVgQHq U25eKHOx5crRBpZ+pfjT37apOVeqh49oFMNTpQL4063zG9jUNAXI8fUhzGoOBt+6dhVm 5WLfZ6/nXy9b2jqZ4qIS8RUEu+L/UCxTd97FTgpxHKNMoJQdi9LGoWxTvmmBRvCZQL/U 7SzhlJbnO/z4L3vAXYai3qJNWRsGmyVb+JioeaX4oVIEldMIwC0Ug+QjPWQiN8xR1VaU wVzA== MIME-Version: 1.0 X-Received: by 10.180.90.51 with SMTP id bt19mr12212429wib.22.1399827049474; Sun, 11 May 2014 09:50:49 -0700 (PDT) Received: by 10.194.192.193 with HTTP; Sun, 11 May 2014 09:50:49 -0700 (PDT) In-Reply-To: <536F9455.80000@wholesum.net> References: <536F9455.80000@wholesum.net> Date: Sun, 11 May 2014 11:50:49 -0500 Message-ID: Subject: Re: how can I keep users in their directory on ssh From: Adam Vande More To: Nikolai Wendorf Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2014 16:50:52 -0000 On Sun, May 11, 2014 at 10:16 AM, Nikolai Wendorf wrote: > have a look at the man page for bash aliased to rbash or the -r option There is zero reason to involve bash when openssh does this natively. http://lmgtfy.com/?q=chroot+ssh+users -- Adam