Please login or register.

Login with username, password and session length
Advanced search  


Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: When logged in as root "echo $USER" returns "VL70"  (Read 6235 times)


  • Vectorite
  • ***
  • Posts: 105
When logged in as root "echo $USER" returns "VL70"
« on: May 17, 2012, 11: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
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"?


  • Administrator
  • Vectorian
  • *****
  • Posts: 3497
Re: When logged in as root "echo $USER" returns "VL70"
« Reply #1 on: May 17, 2012, 11:31:25 am »

For some reason, this was left like that.

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


  • Vectorite
  • ***
  • Posts: 105
Re: When logged in as root "echo $USER" returns "VL70"
« Reply #2 on: May 17, 2012, 12:22:55 pm »

Duh :) if it would have been a snake it would have bit me.