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!

cannot login to ssh

Discussion in 'General Discussion' started by Secret Agent, Nov 15, 2004.

  1. Secret Agent

    Secret Agent Guest

    SSH (is up and runing) is not letting me in.

    I have direct root disabled but the user is in the usergroup and I logged in with user/password fine. I type su -l and it asks for root password of course, typed that and enter...but then nothing happens just breaks a new line and no text.

    su -l
    su -
    su

    all give same error

    I enter a few times and get "bad message".

    example:

    -bash-2.05b$ su -
    Password:





    bad message
    -bash-2.05b$

    The space is me pressing enter 3-4 times until I get "bad message".

    How do I fix this?

    Fedora Core
     
  2. K_aneda

    K_aneda Well-Known Member

    Joined:
    Feb 29, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Sydney, Australia
    Is the user in question in the wheel group?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Secret Agent

    Secret Agent Guest

    Yes I stated that in my post :)
     
  4. K_aneda

    K_aneda Well-Known Member

    Joined:
    Feb 29, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Sydney, Australia
    It just said usergroup so I thought Id ask exactly :)
    What shows up in your logs? Surely there'd be an event regarding failed logins..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Secret Agent

    Secret Agent Guest

    /var/log/messages = empty

    That is all I know for now. I'm stuck at bash prompt and cannot get into root.
     
  6. K_aneda

    K_aneda Well-Known Member

    Joined:
    Feb 29, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Sydney, Australia
    Shouldn't be empty at all.. Re-enable root login, get back in as root, and see if you can find out what went wrong.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Secret Agent

    Secret Agent Guest

    I think the whole point of my thread is that I cannot get into root in the first place :)

    I never disabled root either. I stated both these in my first post. Please read again at it.

    I disabled "direct" root login. That does not affect anything. Someone just decided to install webmin and screwed up the login process somehow, so I'm stuck between a rock and a hard place
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    What do you mean by that?

    If you didn't install webmin and don't know who did, your /var/log/messages is empty and your having problems su into root, then it sounds like your server has suffered a root compromise.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Secret Agent

    Secret Agent Guest

    I never said I didn't know who installed webmin, my customer did but he obviously did something wrong to affect root login
     
  10. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Then your only realistic option to to fix it from the servers console where you can login as root. If you don't have access to the server console or your NOC doesn't offer console support, then you're most likely going to have to OS reload the server and restore your backups.
     
    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