Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #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:
    166
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 10101

    10101 Well-Known Member

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

    It didnt output anything:

    -bash-2.05b# PS1="[\u@\h \W]\\$ "
    [root@master root]#
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. bijo

    bijo Well-Known Member

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

    But now you get the prompt :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. 10101

    10101 Well-Known Member

    Joined:
    Sep 4, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    166
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    166
    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 ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. 10101

    10101 Well-Known Member

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

    Thanks for your help Bijo.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice