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!

bash issue

Discussion in 'General Discussion' started by Bashed, Aug 7, 2017.

  1. Bashed

    Bashed Well-Known Member

    Joined:
    Dec 18, 2013
    Messages:
    113
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I think a made a minor mistake a few days ago and deleted some .bash file(s). So, when I log into SSH now it shows this instead of root@

    Code:
    -bash-4.1# 
    On a good server I see this:

    Code:
    lrwxrwxrwx.   1 root root    7 Jul  7  2016 bin -> usr/bin
    On the server showing -bash- prompt I see this:

    Code:
    dr-xr-xr-x.   3 root root 4.0K Jul 19 05:02 bin
    Curious, how would I fix that? They're all Centos 7 boxes.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you let us know the specific commands you ran, or which files were deleted? If you wanted to reinstall the bash RPM, you could use this command:

    Code:
    yum reinstall bash
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,878
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    When you are the prompt showing "-bash-4.1#" execute the command bash and see what you get..
     
    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