From owner-freebsd-questions Tue Sep 3 11:38:54 2002 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 E446237B401 for ; Tue, 3 Sep 2002 11:38:50 -0700 (PDT) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC2AD43E72 for ; Tue, 3 Sep 2002 11:38:49 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (patr530-b225.otenet.gr [212.205.244.233]) by mailsrv.otenet.gr (8.12.4/8.12.4) with ESMTP id g83IcQtG011706; Tue, 3 Sep 2002 21:38:37 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.6/8.12.6) with ESMTP id g83I4qKN017364; Tue, 3 Sep 2002 21:04:52 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.6/8.12.6/Submit) id g83I4q99017363; Tue, 3 Sep 2002 21:04:52 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 3 Sep 2002 21:04:51 +0300 From: Giorgos Keramidas To: Radko Keves Cc: questions@FreeBSD.ORG Subject: Re: restricted shell Message-ID: <20020903180451.GA14113@hades.hell.gr> References: <20020903155040.GA66479@studnet.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020903155040.GA66479@studnet.sk> X-PGP-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 X-Phone: +30-944-116520 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-09-03 17:50 +0000, Radko Keves wrote: > hi all i have question about restricted shell (for example rbash) > SHELL enviroment is read only, but user can run another shell if is > in PATH, [...] No she can't. At least with bash2 that I tested here: pet:/home/koko$ bash -r bash: SHELL: readonly variable bash: PATH: readonly variable bash: PATH: readonly variable pet:/home/koko$ tcsh bash: tcsh: No such file or directory pet:/home/koko$ echo $PATH pet:/home/koko$ _ -- FreeBSD: The Power to Serve -- http://www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message