From owner-freebsd-questions Tue Sep 3 14:44: 6 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 02CC037B400 for ; Tue, 3 Sep 2002 14:44:03 -0700 (PDT) Received: from nic.upatras.gr (nic.upatras.gr [150.140.129.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 74ABA43E65 for ; Tue, 3 Sep 2002 14:44:01 -0700 (PDT) (envelope-from keramida@freebsd.org) Received: (qmail 11728 invoked from network); 3 Sep 2002 21:37:21 -0000 Received: from upnet-dialinpool-4.upatras.gr (HELO hades.hell.gr) (150.140.128.250) by nic.upatras.gr with SMTP; 3 Sep 2002 21:37:21 -0000 Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.6/8.12.6) with ESMTP id g83LhvFu038336; Wed, 4 Sep 2002 00:43:57 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from charon@localhost) by hades.hell.gr (8.12.6/8.12.6/Submit) id g83Lhvk3038335; Wed, 4 Sep 2002 00:43:57 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Wed, 4 Sep 2002 00:43:57 +0300 (EEST) From: Giorgos Keramidas X-X-Sender: charon@hades To: Radko Keves Cc: questions@freebsd.org Subject: Re: restricted shell In-Reply-To: <20020903184443.GA99379@studnet.sk> Message-ID: <20020904004159.H37427-100000@hades> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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