From owner-freebsd-questions@FreeBSD.ORG Mon Aug 25 19:18:18 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 92DA11065671 for ; Mon, 25 Aug 2008 19:18:18 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (dsl092-078-145.bos1.dsl.speakeasy.net [66.92.78.145]) by mx1.freebsd.org (Postfix) with ESMTP id 533928FC1A for ; Mon, 25 Aug 2008 19:18:18 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id 5B31228430; Mon, 25 Aug 2008 15:18:17 -0400 (EDT) To: Robe References: <221c791e0808250832j3fb88887m6d7155052f45c5ff@mail.gmail.com> From: Lowell Gilbert Date: Mon, 25 Aug 2008 15:18:17 -0400 In-Reply-To: <221c791e0808250832j3fb88887m6d7155052f45c5ff@mail.gmail.com> (Robe's message of "Mon\, 25 Aug 2008 10\:32\:22 -0500") Message-ID: <44iqtolx8m.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Help changing the prompt X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 19:18:18 -0000 Robe writes: > Hi there, > > I'm trying to change the prompt in the *text (console) mode* for a > restricted user with a statement like this > > set prompt = "%~> " > > But it doesn't work. And when I type *set* I see _ = "%~> " instead prompt = > "%~> " > > However when I do it logged as a root it works. > > Can someone help me with this? Sounds like your user is using a different shell than root is. Try "finger " to find out what shell it is using (probably the Bourne Shell, /bin/sh), and check the documentation for the shell (if it's /bin/sh, see the manual with "man sh"). Or change the user's shell (e.g., with "chsh"). -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/