Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

We have two Xservers on our network. On server A all our employees have an account setup, but on B the only account is the admin account. I can ssh to server A fine with my username and pass that are set on that server as expected.

However, when I ssh to server B using the same user account i have setup on server A it lets me in. Upon login it sends me to the home account mounted at the network location (/Network/Servers/server A/Users/pmilb) and at the shell prompt it says

rrcs-111-111-111-111:~ pmilb$

where 111-111-111-111 is my external ip.

I am the new system admin here and was poking around testing things out. I was just wondering why it does this and where is this configured? Thanks

share|improve this question
add comment

1 Answer

That is set by the environment variable PS1.

ps -p $$ Should tell you which shell is in use. If it says something other than bash then pretend I'm talking about that shell below.

Assuming you are in bash, this variable is set in /etc/bashrc or ~/.bashrc. If x-server stores this in a different place or changing it in those locations and reconnecting doesn't seem to have an affect check the man page with man bash, it should list the locations of configuration files for the shell.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.