Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 2002 00:43:57 +0300 (EEST)
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Radko Keves <rado@studnet.sk>
Cc:        questions@freebsd.org
Subject:   Re: restricted shell
Message-ID:  <20020904004159.H37427-100000@hades>
In-Reply-To: <20020903184443.GA99379@studnet.sk>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-09-03 20:44, Radko Keves wrote:
> ;), 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

Pardon me, I was invoking bash the wrong way.
I stand corrected:

charon@hades[00:42]/home/charon$ env PATH='/bin:/sbin:/usr/bin:.' /usr/local/bin/bash --restricted --norc
charon@hades[00:42]/home/charon$ /bin/tcsh
bash: /bin/tcsh: restricted: cannot specify `/' in command names
charon@hades[00:42]/home/charon$ tcsh
You have mail in /home/charon/Mailbox.
charon@hades[0:42]/home/charon> exit
exit
charon@hades[00:42]/home/charon$ exit
exit

> try againg please

You're correct.

- Giorgos


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?20020904004159.H37427-100000>