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

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




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