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.

What the hell is -bash-2.05b#?

Discussion in 'General Discussion' started by jackie46, Nov 29, 2005.

  1. jackie46

    jackie46 BANNED

    Joined:
    Jul 25, 2005
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    0
    I have not logged into one of my servers in 2 days. When i log in im greeted with

    -bash-2.05b#

    The only time i see this prompt is when logging into a user site using SSH but not when logging into the server as ROOT!

    What the hell is this? Everytime i'v logged into my boxes i'v always received the proper prompt after logging in as root.

    root@srv08

    or

    root@srv07

    srv06 etc..

    Swhy does it show as -bast-2.05b# and how did it change all of a sudden from root@srv07?

    Im logged in as root and i can do everything that root does so this doesnt make a whole lot of sense to me. :confused:
     
    #1 jackie46, Nov 29, 2005
    Last edited: Nov 29, 2005
  2. johnchan

    johnchan Active Member

    Joined:
    Jun 29, 2003
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6

    Thats simply your shell prompt. You can change it. Look at /root/.bashrc or .bash* and you'll see some files there.

    You can even change your shell by using "chsh".
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Indeed. It would suggest that you've screwed up either your local or the global bash scripts for the root account.
     
  4. bijo

    bijo Well-Known Member

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

    jackie46 BANNED

    Joined:
    Jul 25, 2005
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    0
    I had to recreate .bash_profile and .bashrc because they were deleted! :confused:

    I copied them from aonther server but I'd really like to know how they got deleted. The last time i did a upcp before logging out two days ago.
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    They'd onyl really be deleted from someone logging in as root. Most commonly deleting /root/.bash*

    That said, be very careful and check the logs of root logins as that is typical behaviour of a hacker (to remove .bash_history). Provided /var/log/wtmp hasn't been tampered with, check:

    last -da
     
  7. jackie46

    jackie46 BANNED

    Joined:
    Jul 25, 2005
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    0
    last shows all my logins all the way back to Nov 1. Still not sure how it got deleted. The box is clean. :confused:
     
Loading...

Share This Page