VectorLinux
October 20, 2014, 01:18:21 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: When logged in as root "echo $USER" returns "VL70"  (Read 1459 times)
fogpipe
Vectorite
***
Posts: 105


« on: May 17, 2012, 10:28:27 am »

so im doing ssh and ssh X forwarding between two machines. I use different color prompts for users and root and this command in .bashrc
Quote
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME} ${PWD}\007"'
so that the machine im working on is echoed in the title bar of the xterm im using.
On the vl6 machine, when logged in as root, the user appears as "root" in the title bar, when im logged in to the vl7 machine, the user appears as "vl70". How do i fix this? Where is the value of $USER being set to "vl70"?
Logged
M0E-lnx
Administrator
Vectorian
*****
Posts: 3184



« Reply #1 on: May 17, 2012, 10:31:25 am »

For some reason, this was left like that.

Edit your /root/.bashrc and remove the line that says
Code:
export USER="vl70"
log out and back in as root and it should be fixed.
Logged

fogpipe
Vectorite
***
Posts: 105


« Reply #2 on: May 17, 2012, 11:22:55 am »

Duh Smiley if it would have been a snake it would have bit me.

Thanks
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!