Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Where did my root prompt "#" character go?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jkcunningham
l33t
l33t


Joined: 28 Apr 2003
Posts: 649
Location: 47.49N 121.79W

PostPosted: Mon May 05, 2003 5:04 pm    Post subject: Where did my root prompt "#" character go? Reply with quote

Up until yesterday my user account prompt character was "$" and my root or su prompt character was "#", like usual. I fooled around with the user prompt line in the users home directory .bashrc file and got it working the way I wanted. Now when I su from that user the prompt stays as "$" instead of changing to "#".

I don't see how it can do that. I have a .bashrc file in /root/ but it doesn't do anything to the prompt. Does the mere existance of a /root/.bashrc change the prompt for other users runing su? If so, how do I change it to the way it was?

It strikes me as dangerous to have the same prompt. I often have have a dozen eterms running, some su, some normal, and I rely on the prompt to help me distinguish between them.

-Jeff
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Mon May 05, 2003 5:27 pm    Post subject: Reply with quote

See what
Code:
source /etc/profile
does for you.

Puggy
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
Useful Idiot
Guru
Guru


Joined: 30 Aug 2002
Posts: 329
Location: Finland

PostPosted: Mon May 05, 2003 6:51 pm    Post subject: Reply with quote

Try using su - insted of plain su.(Or if your lazy like me put alias su="su -" to users .bashrc)
_________________
[size=9]We are all in the gutter, but some of us are looking at the stars.
Back to top
View user's profile Send private message
jkcunningham
l33t
l33t


Joined: 28 Apr 2003
Posts: 649
Location: 47.49N 121.79W

PostPosted: Tue May 06, 2003 1:50 am    Post subject: Reply with quote

I put the line source /etc/profile in root's .bashrc and that fixed it.

Thanks.
-Jeff
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum