Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Sep 2002 20:44:43 +0200
From:      Radko Keves <rado@studnet.sk>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        questions@FreeBSD.org
Subject:   Re: restricted shell
Message-ID:  <20020903184443.GA99379@studnet.sk>
In-Reply-To: <20020903180451.GA14113@hades.hell.gr>
References:  <20020903155040.GA66479@studnet.sk> <20020903180451.GA14113@hades.hell.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
;), 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020903184443.GA99379>