From owner-freebsd-questions Wed Apr 15 06:47:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA28216 for freebsd-questions-outgoing; Wed, 15 Apr 1998 06:47:14 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from falconsoft.com (guff@ns.falconsoft.com [206.112.36.6]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA28206 for ; Wed, 15 Apr 1998 13:47:07 GMT (envelope-from guff@falconsoft.com) Received: from localhost (guff@localhost) by falconsoft.com (8.8.8/8.8.7) with SMTP id JAA11999 for ; Wed, 15 Apr 1998 09:47:02 -0400 (EDT) (envelope-from guff@falconsoft.com) Date: Wed, 15 Apr 1998 09:47:01 -0400 (EDT) From: Tim Gustafson To: freebsd-questions@FreeBSD.ORG Subject: Root Prompt Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'd like to change my root prompt, but even when I put the following in my /root/.profile, I still get a bash# instead of user@host: # set prompt: ``username@hostname$ '' PS1="`whoami`@`hostname | sed 's/\..*//'`" case `id -u` in 0) PS1="${PS1}# ";; *) PS1="${PS1}$ ";; esac I'm using bash for my shell, and everything else about the user pofile is pretty much defaulted. In my personal user profile, this works fine. Is there something special I have to to to make it work in the root profile so that when I su myself, I keep the user@host prompt? tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message