From owner-freebsd-questions@FreeBSD.ORG Wed Jan 28 19:43:47 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F7D416A4CE for ; Wed, 28 Jan 2004 19:43:47 -0800 (PST) Received: from madras.dyndns.org (dsl-137.241.240.220.dsl.comindico.com.au [220.240.241.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4467143D45 for ; Wed, 28 Jan 2004 19:43:45 -0800 (PST) (envelope-from ggop@madras.dyndns.org) Received: by madras.dyndns.org (Postfix, from userid 1001) id 77EB24512; Thu, 29 Jan 2004 14:41:48 +1100 (EST) Date: Thu, 29 Jan 2004 14:41:48 +1100 From: Gautam Gopalakrishnan To: freebsd-questions@FreeBSD.ORG Message-ID: <20040129034148.GA99912@madras.dyndns.org> References: <5.2.0.9.2.20040128211822.01d40390@pop.voyager.net> <44hdyfa29s.fsf@be-well.ilk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44hdyfa29s.fsf@be-well.ilk.org> User-Agent: Mutt/1.4.1i Subject: Re: locking a user into one directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2004 03:43:47 -0000 On Wed, Jan 28, 2004 at 09:59:11PM -0500, Lowell Gilbert wrote: > Dragoncrest writes: > > > I've seen this explained before, but I've never taken much > > interest in it as I never had a need for it. Well, it's starting to > > look like I do. What I'm wanting to do is give shell access to a user > > to shell into the mail server, check their mail, and that's it. I > > don't want them to be able to wander outside of their home directory. > > I think it's called a jail, but I don't remember. Does anyone know > > what it is I need and have a tutorial for it or know where I can find > > one? Much appreciated. > > Um, you mean "man jail"? > Or maybe "man chroot"... Or you could use a restricted shell, maybe zsh or bash. http://www.faqs.org/docs/bashman/bashref_75.html Gautam