The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ssh changed, bash-2.05b

Discussion in 'General Discussion' started by 10101, Nov 6, 2005.

  1. 10101

    10101 Well-Known Member

    Joined:
    Sep 4, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    HI,

    Tonight our ssh changed which is really odd, by changed i mean:

    1) now shows "-bash-2.05b#" instead of the hostname, before you enter a command

    2) edit no longer works but pico does

    3) when copying files to a place where they already exist it no longer asks if you want to overrite

    any ideas what this could be due to or how to fix it?
     
    #1 10101, Nov 6, 2005
    Last edited: Nov 7, 2005
  2. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hello,

    Did you check the value of PS1 varriable on your system?. if not check it first.
    Try the following command on your console.
    ----------------------------------
    PS1="[\u@\h \W]\\$ "
    ----------------------------------
    May be it will help you to solve this issue ;) Let me know the status.
     
  3. 10101

    10101 Well-Known Member

    Joined:
    Sep 4, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    It didnt output anything:

    -bash-2.05b# PS1="[\u@\h \W]\\$ "
    [root@master root]#
     
  4. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India

    But now you get the prompt :)
     
  5. 10101

    10101 Well-Known Member

    Joined:
    Sep 4, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    true but when i log out and back it reverts to "-bash-2.05b#", bash is looking more like freebsd than centos colour wise for the files too.
     
  6. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hello,

    Check the file /etc/bashrc, If you don't able to find out the issue, set the value in /etc/profile, It will help you to overcome this issue, Let me know the status ;)
     
  7. 10101

    10101 Well-Known Member

    Joined:
    Sep 4, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    I ran PS1="\u@\h # " which sorted this, just incase anyone else comes across this.

    Thanks for your help Bijo.
     
Loading...

Share This Page