View previous topic :: View next topic |
Author |
Message |
jkcunningham l33t
Joined: 28 Apr 2003 Posts: 649 Location: 47.49N 121.79W
|
Posted: Mon May 05, 2003 5:04 pm Post subject: Where did my root prompt "#" character go? |
|
|
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 |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Mon May 05, 2003 5:27 pm Post subject: |
|
|
See what Code: | source /etc/profile | does for you.
Puggy _________________ Where there's open source , there's a way. |
|
Back to top |
|
|
Useful Idiot Guru
Joined: 30 Aug 2002 Posts: 329 Location: Finland
|
Posted: Mon May 05, 2003 6:51 pm Post subject: |
|
|
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 |
|
|
jkcunningham l33t
Joined: 28 Apr 2003 Posts: 649 Location: 47.49N 121.79W
|
Posted: Tue May 06, 2003 1:50 am Post subject: |
|
|
I put the line source /etc/profile in root's .bashrc and that fixed it.
Thanks.
-Jeff |
|
Back to top |
|
|
|