From owner-freebsd-questions Mon Feb 17 8: 7:24 2003 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 BC1DE37B401 for ; Mon, 17 Feb 2003 08:07:23 -0800 (PST) Received: from smtp.hispeed.ch (isp247n.hispeed.ch [62.2.95.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6316543FB1 for ; Mon, 17 Feb 2003 08:07:22 -0800 (PST) (envelope-from locus@hispeed.ch) Received: from rock.stable.ch (dclient217-162-34-199.hispeed.ch [217.162.34.199]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with ESMTP id h1HG7KhT005951 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 17 Feb 2003 17:07:21 +0100 Received: from locus by rock.stable.ch with local (Exim 3.33 #1) id 18knnX-000409-00 for questions@FreeBSD.ORG; Mon, 17 Feb 2003 17:07:15 +0100 Date: Mon, 17 Feb 2003 17:07:15 +0100 From: Thomas Spreng To: questions@freebsd.org Subject: Re: shell prompt question Message-ID: <20030217160715.GA15268@rock.stable.ch> Mail-Followup-To: questions@FreeBSD.ORG References: <20030216152524.A14300@skytrackercanada.com> <20030216214931.GB2106@gothmog.gr> <20030217104624.D28552@skytrackercanada.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030217104624.D28552@skytrackercanada.com> User-Agent: Mutt/1.4i 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 Hi, On Mon, Feb 17, 2003 at 10:46:24AM -0500, David Banning wrote: > > The way that the shell prompt is set depends on the particular shell. > > What shell does your `david' user have? What shell does `root' have? > > they both use bash. > > > > > > How do I get the super-user prompt when I just use the "su" command > > > rather than the full "su -" command? > > > > The default behavior of su is to run an interactive, but not login, > > shell AFAIK. How to set the prompt for interactive invocations of > > your root user's shell depends on the shell. /root/.bashrc f.e. is parsed if you start an interactive shell, like 'su'. Define your PS1 variable in this file if you want to customize it and read the bash manpage, its written there. cheers, tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message