From owner-freebsd-questions Mon Feb 17 7:51:25 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 8D0E037B401 for ; Mon, 17 Feb 2003 07:51:24 -0800 (PST) Received: from www.clubplus.net (ns1.clubplus.net [216.191.22.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B83943F85 for ; Mon, 17 Feb 2003 07:51:23 -0800 (PST) (envelope-from david@skytrackercanada.com) Received: from skytrackercanada.com (cust29.209.188.66.dsl.accessv.com [209.188.66.29]) by www.clubplus.net (8.11.4/8.11.1) with ESMTP id h1HFiXk06056; Mon, 17 Feb 2003 10:44:33 -0500 Received: (from david@localhost) by skytrackercanada.com (8.12.6/8.12.6) id h1HFkPcJ028979; Mon, 17 Feb 2003 10:46:25 -0500 (EST) (envelope-from david) Date: Mon, 17 Feb 2003 10:46:24 -0500 From: David Banning To: Giorgos Keramidas Cc: David Banning , questions@FreeBSD.ORG Subject: Re: shell prompt question Message-ID: <20030217104624.D28552@skytrackercanada.com> References: <20030216152524.A14300@skytrackercanada.com> <20030216214931.GB2106@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030216214931.GB2106@gothmog.gr>; from keramida@ceid.upatras.gr on Sun, Feb 16, 2003 at 11:49:31PM +0200 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 > 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. I took out my "PS1=david$" line in my .profile, and now I have it working again. My user shell is simply "bash-2.03$" and my su shell is "su-2.03#". Thanks for your help. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message