From owner-freebsd-questions Tue Sep 3 11:46:35 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 61F4E37B400 for ; Tue, 3 Sep 2002 11:46:32 -0700 (PDT) Received: from studnet.sk (kripel.unitra.sk [193.87.12.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D70343E75 for ; Tue, 3 Sep 2002 11:46:06 -0700 (PDT) (envelope-from rado@kripel.studnet.sk) Received: from kripel.studnet.sk (localhost [127.0.0.1]) by studnet.sk (8.12.5/angel's version) with ESMTP id g83IiiGJ002047; Tue, 3 Sep 2002 20:44:44 +0200 (CEST) Received: (from rado@localhost) by kripel.studnet.sk (8.12.5/8.12.3/Submit) id g83IiiWb001958; Tue, 3 Sep 2002 20:44:44 +0200 (CEST) Date: Tue, 3 Sep 2002 20:44:43 +0200 From: Radko Keves To: Giorgos Keramidas Cc: questions@FreeBSD.org Subject: Re: restricted shell Message-ID: <20020903184443.GA99379@studnet.sk> References: <20020903155040.GA66479@studnet.sk> <20020903180451.GA14113@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20020903180451.GA14113@hades.hell.gr> User-Agent: Mutt/1.4i 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 ;), Tue, Sep 03, 2002 at 09:04:51PM +0300, Giorgos Keramidas said that > 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, [...] that's fine but please supply next enviroments for my eyes: PATH SHELL > > 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 because your tcsh shell was out of PATH and path is readonly, try get tcsh path into PATH and try again run "bash -r" ;) tcsh will be executed ;) or better ;( > bash: tcsh: No such file or directory > pet:/home/koko$ echo $PATH > > pet:/home/koko$ _ try againg please > > -- > FreeBSD: The Power to Serve -- http://www.FreeBSD.org thank all -- 20:40 up 3:54, 3 users, load averages: 3,04 3,20 3,14 -- FreeBSD 5.0-CURRENT #12: root@kripel:/usr/src/sys/i386/compile/angel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message