Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I remotely SSH login as root (using PUTTY),

The bash shell prompt becomes:

[root@yukiko /]#

When I entered:

getent passwd

The first line I see is this one:

root:x:0:0:root:/root:/bin/bash

Shouldn't the bash shell prompt look like this? (which corresponds to the first line in /etc/passwd) ?

[root /]#

This is a VPS server with CentOS installed, yukiko is the desired customer login id I provided to the hosting company.

share|improve this question
    
In this case yukiko is the machine's name. –  Chris Nava Feb 7 '10 at 2:54
add comment

1 Answer

up vote 5 down vote accepted

If you type:

echo $PS1

at the Bash prompt, you'll see:

[\u@\h \w]

That says to display the username, an at sign, the hostname and the current working directory all inside square brackets.

Evidently, they've given your server the same hostname as your customer login ID.

share|improve this answer
    
Yes, you are right, I get this: [\u@\h \W]\$ –  bobo Feb 7 '10 at 2:02
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.