From owner-freebsd-questions@FreeBSD.ORG Sat Mar 12 00:53:50 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 A324D16A4CE for ; Sat, 12 Mar 2005 00:53:50 +0000 (GMT) Received: from pemaquid.safeport.com (pemaquid.safeport.com [204.156.12.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14B3D43D1F for ; Sat, 12 Mar 2005 00:53:50 +0000 (GMT) (envelope-from doug@safeport.com) Received: from pemaquid.safeport.com (localhost [127.0.0.1]) j2C0rmj2024846 for ; Fri, 11 Mar 2005 19:53:48 -0500 (EST) (envelope-from doug@safeport.com) Received: from localhost (doug@localhost)j2C0rljM024843 for ; Fri, 11 Mar 2005 19:53:48 -0500 (EST) (envelope-from doug@safeport.com) X-Authentication-Warning: pemaquid.safeport.com: doug owned process doing -bs Date: Fri, 11 Mar 2005 19:53:46 -0500 (EST) From: doug@safeport.com To: freebsd-questions@FreeBSD.ORG Message-ID: <20050311191532.X8887@pemaquid.safeport.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: bash restricted shell 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: Sat, 12 Mar 2005 00:53:50 -0000 On a standard 4.11 install /usr/local/bin/bash = v2.04. rbash does not exist. So I added it as an sh script. This works okay in that normal things I tried do not break out. This is probably good enough for the users I would give this shell to. My question is basically: what is the "right" way to do this? I can not find syntax for shopt and the various forms of set I tried either get a syntax error or do not invoke bash as a restricted shell. Thanks for any thoughts _____ Douglas Denault http://www.safeport.com doug@safeport.com Voice: 301-469-8766 Fax: 301-469-0601