From owner-freebsd-questions@FreeBSD.ORG Mon Aug 25 17:04:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7582106566C for ; Mon, 25 Aug 2008 17:04:42 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 930358FC12 for ; Mon, 25 Aug 2008 17:04:42 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id m7PH4fIE022896 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 25 Aug 2008 12:04:41 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.2/Submit) id m7PH4ecZ022879; Mon, 25 Aug 2008 12:04:40 -0500 (CDT) (envelope-from dan) Date: Mon, 25 Aug 2008 12:04:40 -0500 From: Dan Nelson To: Robe Message-ID: <20080825170440.GB26653@dan.emsphone.com> References: <221c791e0808250918s19d782c1l565f066e778a55bf@mail.gmail.com> <20080825164127.GA26653@dan.emsphone.com> <221c791e0808250955k59559154pb1866ab771303f22@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <221c791e0808250955k59559154pb1866ab771303f22@mail.gmail.com> X-OS: FreeBSD 7.0-STABLE User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: Help using setenv as a restricted user X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 17:04:42 -0000 [ added freebsd-questions back to CC list ] In the last episode (Aug 25), Robe said: > > Are you sure your non-root user is using tcsh? That error message looks > like it's coming from /bin/sh: > > You're right. I used *set* command in both sessions and I get the following > > for user root shell = "/bin/csh" > for user test shell = "/bin/sh" > > What the difference between these shells? Lots :) sh (Bourne shell) used to be used exclusively for scritping, and csh was used as the interactive shell, but sh has grown command-line editing features, and newer bourne-based shells like bash, ksh, and zsh have extended scripting and cli features. zsh has quite a few csh emulation options, if you want to use a bourne-based shell but still want to use csh features. > How I can use the same shell for user test? Take a look at http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/shells.html -- Dan Nelson dnelson@allantgroup.com