Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Customizing The Command Line Prompt

5 views
Skip to first unread message

Adam

unread,
Jul 11, 2003, 3:24:48 PM7/11/03
to
Hi all. I have many OpenBSD machines and I have customized the prompt to
display time, user currently logged in and server name. My question is
when I log in as a user and I su to root the root prompt does not seem
to use my customized prompt. BTW, I'm using Bash 2.05 static. Now I have
changed the shell to bash for the root account. The customized prompt
displays fine as long as I do not su in. Below is the code I used in the
file .profile and what is lookes like after being parsed.

Any ideas? Am I going about this wrong or missing a file to change?


.profile
--------
PS1="\n\@ [\u]\n\h:"

After being parsed

01:10 PM [username]
servername:

Peter B

unread,
Jul 11, 2003, 3:28:51 PM7/11/03
to

"Adam" <webma...@SPAMvenmarces.com> wrote in message
news:vgu3o3n...@corp.supernews.com...

>
> Any ideas? Am I going about this wrong or missing a file to change?
>

How do you su?
#su -
?

Then the shell of root runs it's profile-script (I suspect standard csh)

Peter


Adam

unread,
Jul 11, 2003, 4:02:31 PM7/11/03
to
I login wiht my user account and type "su". Type in the root password
and done. Why should I stick with csh? Either way the prompt does not
change when I su to root.
0 new messages