From owner-freebsd-questions@FreeBSD.ORG Wed Apr 11 08:47:53 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 33A4E16A402 for ; Wed, 11 Apr 2007 08:47:53 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by mx1.freebsd.org (Postfix) with ESMTP id BE78213C4B8 for ; Wed, 11 Apr 2007 08:47:52 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id l3B8lhgm018071; Wed, 11 Apr 2007 10:47:43 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id E04D1B84C; Wed, 11 Apr 2007 10:47:42 +0200 (CEST) Date: Wed, 11 Apr 2007 10:47:42 +0200 From: Roland Smith To: L33T Networks Message-ID: <20070411084742.GA915@slackbox.xs4all.nl> Mail-Followup-To: L33T Networks , freebsd-questions@freebsd.org References: <461C9ABB.70005@freemail.hu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: <461C9ABB.70005@freemail.hu> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.14 (2007-02-12) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Locking SSH Users to $HOME 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: Wed, 11 Apr 2007 08:47:53 -0000 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 11, 2007 at 10:22:19AM +0200, Nagy L=E1szl=F3 Zsolt wrote: > L33T Networks wrote: > >Using the SSHD server, how can I lock users SSH'ing into a box into their > >home directory, without having access to the /usr/home directory as a=20 > >whole? > > =20 You could set them up with a restricted shell. Use e.g. 'bash -r' or the equivalent 'rbash'. See the RESTRICTED SHELL section in the bash manual to understand what it does. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --/04w6evG8XlLl3ft Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGHKCuEnfvsMMhpyURAifEAJ9sK5NlsGFe+g2MxSLoNsK+Jkb7ZwCff7Zl CT6QyT4aGVWGSpSwdFlS7w0= =i6M4 -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft--