From owner-freebsd-questions@FreeBSD.ORG Mon Apr 25 18:08:08 2005 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 23A8416A4CE for ; Mon, 25 Apr 2005 18:08:08 +0000 (GMT) Received: from defang10.net.ohio-state.edu (defang10.net.ohio-state.edu [128.146.216.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABA4043D39 for ; Mon, 25 Apr 2005 18:08:07 +0000 (GMT) (envelope-from stein.175@osu.edu) Received: from RADIMRES14 (radimres14.med.ohio-state.edu [140.254.8.83]) j3PI86mY029746; Mon, 25 Apr 2005 14:08:06 -0400 Message-Id: <200504251808.j3PI86mY029746@defang10.net.ohio-state.edu> From: "Olaf Stein" To: "'Roland Smith'" , Date: Mon, 25 Apr 2005 14:08:06 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-reply-to: <20050425163410.GE98448@slackbox.xs4all.nl> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcVJtNGjB3x21C/3RNCF6uT3N1qNNgACz9/Q X-CanItPRO-Stream: outbound X-Spam-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) Subject: RE: lock user to home 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: Mon, 25 Apr 2005 18:08:08 -0000 Does not work I changed the shell with chpass -s /usr/local/bin/bash -r or rbash Chpass said that those are unvalid arguments but changed it anyway in /etc/passwd But user could not login anymore at all Any other ideas?? Thanks /olaf -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Roland Smith Sent: Monday, April 25, 2005 12:34 PM To: freebsd-questions@freebsd.org Cc: Olaf Stein Subject: Re: lock user to home directory On Mon, Apr 25, 2005 at 10:51:00AM -0400, Olaf Stein wrote: > hi everybody > > is there an easy way to lock a user to his home directory?? Try giving them restricted bash (rbash, or bash -r) as shell. Roland -- R.F. Smith /"\ ASCII Ribbon Campaign r s m i t h @ x s 4 a l l . n l \ / No HTML/RTF in e-mail http://www.xs4all.nl/~rsmith/ X No Word docs in e-mail public key: http://www.keyserver.net / \ Respect for open standards