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.

bash issue

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

  1. Bashed

    Bashed Well-Known Member

    Joined:
    Dec 18, 2013
    Messages:
    100
    Likes Received:
    2
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,037
    Likes Received:
    1,278
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,400
    Likes Received:
    52
    Trophy Points:
    28
    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..
     
Loading...

Share This Page